We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
e.g: val["positionx"] = 10; val["positionx"].setInt(10);
is there some different with the two different function call?
The text was updated successfully, but these errors were encountered:
The operator= for the class Value has only been defined as
Value &operator=(const Value &src);
So when you write:
val["positionx"] = 10;
A Value instance is implicitly created using the following constructor:
Value(int newInt);
So in your example, the call to setInt(10) is probably much faster than using the operator=
To improve the operator=, I will overload the operator= to accept the same types as the constructors.
Sorry, something went wrong.
madbranch
No branches or pull requests
e.g:
val["positionx"] = 10;
val["positionx"].setInt(10);
is there some different with the two different function call?
The text was updated successfully, but these errors were encountered: