🐛 fixed regression #1530

This commit is contained in:
Niels Lohmann 2019-03-20 14:40:23 +01:00
parent 9d6ab9014f
commit b33093d610
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69
2 changed files with 2 additions and 2 deletions

View file

@ -5730,7 +5730,7 @@ class basic_json
case value_t::array:
// note parentheses are necessary, see
// 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:
return *lhs.m_value.object < *rhs.m_value.object;

View file

@ -18495,7 +18495,7 @@ class basic_json
case value_t::array:
// note parentheses are necessary, see
// 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:
return *lhs.m_value.object < *rhs.m_value.object;