You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Uniform initialization from another json object differs between gcc and clang. #985
IIRC the auto i{2} form has been fixed in C++17, before it would deduce to std::initializer_list instead of int.
I guess this is the same thing here. If you enable more warnings you should see Clang tell you something like "the meaning of this initialization will change in the future".
My recommendation would be to not use it at all, uniform initialization is quite borken :/
Activity
theodelrieu commentedon Feb 27, 2018
IIRC the
auto i{2}form has been fixed in C++17, before it would deduce tostd::initializer_listinstead ofint.I guess this is the same thing here. If you enable more warnings you should see Clang tell you something like "the meaning of this initialization will change in the future".
My recommendation would be to not use it at all, uniform initialization is quite borken :/
nlohmann commentedon Feb 28, 2018
I fear there is nothing we can do about this. :-/