🐛 fixed regression #1530
This commit is contained in:
parent
9d6ab9014f
commit
b33093d610
@ -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;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user