modify json.hpp to compile with recent gcc

https://github.com/nlohmann/json/issues/606
This commit is contained in:
moneroexamples 2017-06-05 09:01:19 +08:00
parent edc7b05966
commit bea1665ac9

View file

@ -6382,7 +6382,8 @@ class basic_json
case value_t::array:
{
//return *lhs.m_value.array < *rhs.m_value.array;
return *lhs.m_value.array.operator<(lhs, rhs);
//return *lhs.m_value.array.operator<(rhs);
return (*lhs.m_value.array) < *rhs.m_value.array;
// return nlohmann::detail::operator<(lhs, rhs);
}
case value_t::object: