modify json.hpp to compile with recent gcc

This commit is contained in:
moneroexamples 2017-06-04 12:05:36 +08:00
parent 6dfcee5743
commit edc7b05966
1 changed files with 6 additions and 4 deletions

View File

@ -6379,10 +6379,12 @@ class basic_json
{
switch (lhs_type)
{
// case value_t::array:
// {
// return *lhs.m_value.array < *rhs.m_value.array;
// }
case value_t::array:
{
//return *lhs.m_value.array < *rhs.m_value.array;
return *lhs.m_value.array.operator<(lhs, rhs);
// return nlohmann::detail::operator<(lhs, rhs);
}
case value_t::object:
{
return *lhs.m_value.object < *rhs.m_value.object;