diff --git a/src/json.hpp b/src/json.hpp index 9c27fb07..4efe51f7 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -6381,7 +6381,7 @@ class basic_json { case value_t::array: { - return *lhs.m_value.array < *rhs.m_value.array; + return (*lhs.m_value.array) < (*rhs.m_value.array); } case value_t::object: {