-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
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
more than one operator '=' matches these operands #1002
Comments
It's surprising that it even compiles. I would suggest using the animationType.name = j["name"].get<std::string>(); Also, you could refactor your code and create a auto animations = data.get<std::vector<Animation>>(); |
Thank you, the I'm not sure what you mean about the |
You can take a look at this section of the readme. If you need more info let me know |
I created the
|
I'm copying data into a struct. I get this warning when I copy a std::string.
The code works as intended but would you know why this message appears? Is there a better way for me to take the json file and put the data in a vector list?
I'm using Windows 7 & Windows 10, Visual Studio 2017 v15.5.6.
Using the most recent release version of nlohmann/json.
The text was updated successfully, but these errors were encountered: