🐛 fixed regression #1530
This commit is contained in:
parent
483a086562
commit
c790b9f8c0
2 changed files with 6 additions and 2 deletions
|
@ -5728,7 +5728,9 @@ class basic_json
|
||||||
switch (lhs_type)
|
switch (lhs_type)
|
||||||
{
|
{
|
||||||
case value_t::array:
|
case value_t::array:
|
||||||
return *lhs.m_value.array < *rhs.m_value.array;
|
// note parentheses are necessary, see
|
||||||
|
// https://github.com/nlohmann/json/issues/1530
|
||||||
|
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;
|
||||||
|
|
|
@ -18493,7 +18493,9 @@ class basic_json
|
||||||
switch (lhs_type)
|
switch (lhs_type)
|
||||||
{
|
{
|
||||||
case value_t::array:
|
case value_t::array:
|
||||||
return *lhs.m_value.array < *rhs.m_value.array;
|
// note parentheses are necessary, see
|
||||||
|
// https://github.com/nlohmann/json/issues/1530
|
||||||
|
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 a new issue