modify json.hpp to compile with recent gcc

https://github.com/nlohmann/json/issues/606
master
moneroexamples 8 years ago
parent edc7b05966
commit bea1665ac9

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

Loading…
Cancel
Save