1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-25 13:41:56 +03:00

🐛 fixed regression #1530

This commit is contained in:
Niels Lohmann
2019-03-20 14:40:23 +01:00
parent 9d6ab9014f
commit b33093d610
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;