-
-
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
switch from json to ordered_json #3343
Labels
confirmed
kind: bug
release item: 🐛 bug fix
solution: proposed fix
a fix for the issue has been proposed and waits for confirmation
Milestone
Comments
I can reproduce the issue with Apple Clang:
The issue seems to be a missing constructor in the implementation of |
Great. Are you going to address that in the next release? Is 3.10.5 going to be in Ubuntu 22.04LTS or there is a possibility that this will be fixed there? Feature freeze is close. |
falbrechtskirchinger
added a commit
to falbrechtskirchinger/json
that referenced
this issue
Mar 3, 2022
One of the ordered_map constructors was incorrectly accepting a std::initializer_list<T> instead of std::initializer_list<value_type>. Add regression test. Fixes nlohmann#3343.
falbrechtskirchinger
added a commit
to falbrechtskirchinger/json
that referenced
this issue
Mar 6, 2022
One of the ordered_map constructors was incorrectly accepting a std::initializer_list<T> instead of std::initializer_list<value_type>. Add regression test. Fixes nlohmann#3343.
nlohmann
added
the
solution: proposed fix
a fix for the issue has been proposed and waits for confirmation
label
Mar 7, 2022
nlohmann
pushed a commit
that referenced
this issue
Mar 7, 2022
One of the ordered_map constructors was incorrectly accepting a std::initializer_list<T> instead of std::initializer_list<value_type>. Add regression test. Fixes #3343.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
confirmed
kind: bug
release item: 🐛 bug fix
solution: proposed fix
a fix for the issue has been proposed and waits for confirmation
Discussed in #3342
Originally posted by gkriger February 18, 2022
From the perspective of casual user the most natural way of switching the code base to ordered_json seems to be replacing
using json = nlohmann::json;
with
using json = nlohmann::ordered_json;
And the things mostly work. However, this:
does not compile however it compiles just fine with using json = nlohmann::json;
Compiler: Microsoft Visual C++ Compiler 16.4.29609.76 (x86_amd64) with c++11 flag.
lib release version 3.10.5
The text was updated successfully, but these errors were encountered: