mirror of
https://github.com/nlohmann/json.git
synced 2025-07-28 12:02:00 +03:00
🐛 fixed regression #1530
This commit is contained in:
@ -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