-
-
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
deserializing arrays should be part of the library #2575
Comments
I may misunderstand the issue, but this works without the serializer you propose: json j = {1,2,3};
std::array<int, 3> a = j;
json k = a; |
The issue was my idiom: BTW: There is a difference. My serializer doesn't throw, while your conversion might. |
Hmm... json j = {1,2,3};
auto const a(j.get<std::array<int, 3>>());
json k = a; also works out of the box. Am I overlooking anything? |
Could be I had an outdated version of your library. Just this morning I was getting errors, but didn't save them :( |
This code should not be necessary:
I consider this an oversight that needs to be fixed. The same applies to standard arrays (i.e. T[N]).
The text was updated successfully, but these errors were encountered: