-
-
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
std::unordered_map in struct, serialization #1133
Comments
It should be fixed on the |
I just got the latest on the |
Yes the library is header only. I did fix the issue for |
theodelrieu
added a commit
to theodelrieu/json
that referenced
this issue
Jun 18, 2018
theodelrieu
added a commit
to theodelrieu/json
that referenced
this issue
Jun 18, 2018
theodelrieu
added a commit
to theodelrieu/json
that referenced
this issue
Jun 18, 2018
theodelrieu
added a commit
to theodelrieu/json
that referenced
this issue
Jun 18, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cannot build deserialization code for a std::unordered_map. Following the example in the README at https://github.com/nlohmann/json#arbitrary-types-conversions
Please describe the steps to reproduce the issue. Can you provide a small but working code example?
What is the expected behavior?
Builds. According to https://github.com/nlohmann/json#conversion-from-stl-containers, std::unordered_map is supported.
Error at line 269 of "utility":
Error C2166 "l-value specifies const object "
MSVC compiler 19.14.26430, Windows 10, Visual Studio 2017 (version 15.7.2), v141 toolset.
develop
branch?Used vcpkg to install.
The text was updated successfully, but these errors were encountered: