diff --git a/.gitignore b/.gitignore index 35dc9b42c..086e855c0 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,4 @@ benchmarks/files/numbers/*.json cmake-build-debug test/test-* +/.vs diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index 016ba39d7..8c01a1854 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -1181,9 +1181,9 @@ Returns an ordering that is similar to Python: */ inline bool operator<(const value_t lhs, const value_t rhs) noexcept { - static constexpr std::array order = {{ - 0 /* null */, 3 /* object */, 4 /* array */, 5 /* string */, - 1 /* boolean */, 2 /* integer */, 2 /* unsigned */, 2 /* float */ + static constexpr std::array order = { { + 0 /* null */, 1 /* object */, 2 /* array */, 3 /* string */, + 4 /* boolean */, 5 /* integer */, 6 /* unsigned */, 7 /* float */ } };