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
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 :/
Construction behaves differently with gcc 7.2 and clang 5.
Code to reproduce:
gcc prints:
1
0
clang prints:
0
0
Both are nlohmann::json instances however
j1
has an array wrapped around in gcc.The text was updated successfully, but these errors were encountered: