-
-
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
Conversion to STL map<string, vector<int>> gives error #220
Labels
confirmed
solution: wontfix
the issue will not be fixed (either it is impossible or deemed out of scope)
state: help needed
the issue needs help to proceed
Comments
This could be related to #176. |
I can reproduce the error. Clang:
GCC:
|
json j = {1,2,3,4};
std::vector<int> v(j); yields
This error message is similar to the one of std::map<std::string, std::vector <int> > v2 = j_map; which is
Note that json j = {1,2,3,4};
std::vector<int> v(j); fails, whereas json j = {1,2,3,4};
std::vector<int> v = j; works. |
If I understand the problem correctly, |
nlohmann
added
the
solution: wontfix
the issue will not be fixed (either it is impossible or deemed out of scope)
label
Jul 31, 2016
It seems that no one has an idea about this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
confirmed
solution: wontfix
the issue will not be fixed (either it is impossible or deemed out of scope)
state: help needed
the issue needs help to proceed
I tried to convert a json object to and from STL
map<string, vector<int>>
. The "from" direction works well:But the "to" direction gives the following error:
Is there a way to get around this error?
The library does conversions fine for
map<string, int>
I also tried this but did not work either
This final one works but looks ugly:
Many thanks
The text was updated successfully, but these errors were encountered: