mirror of
https://github.com/nlohmann/json.git
synced 2026-10-12 17:37:15 +00:00
🐛 fixed regression #1530
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -5730,7 +5730,7 @@ class basic_json
|
|||||||
case value_t::array:
|
case value_t::array:
|
||||||
// note parentheses are necessary, see
|
// note parentheses are necessary, see
|
||||||
// https://github.com/nlohmann/json/issues/1530
|
// https://github.com/nlohmann/json/issues/1530
|
||||||
return (*lhs.m_value.array < *rhs.m_value.array);
|
return (*lhs.m_value.array) < (*rhs.m_value.array);
|
||||||
|
|
||||||
case value_t::object:
|
case value_t::object:
|
||||||
return *lhs.m_value.object < *rhs.m_value.object;
|
return *lhs.m_value.object < *rhs.m_value.object;
|
||||||
|
|||||||
@@ -18495,7 +18495,7 @@ class basic_json
|
|||||||
case value_t::array:
|
case value_t::array:
|
||||||
// note parentheses are necessary, see
|
// note parentheses are necessary, see
|
||||||
// https://github.com/nlohmann/json/issues/1530
|
// https://github.com/nlohmann/json/issues/1530
|
||||||
return (*lhs.m_value.array < *rhs.m_value.array);
|
return (*lhs.m_value.array) < (*rhs.m_value.array);
|
||||||
|
|
||||||
case value_t::object:
|
case value_t::object:
|
||||||
return *lhs.m_value.object < *rhs.m_value.object;
|
return *lhs.m_value.object < *rhs.m_value.object;
|
||||||
|
|||||||
Reference in new issue
Block a user