From edc7b05966dc43306e2135f1ab7332c6a92c3064 Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Sun, 4 Jun 2017 12:05:36 +0800 Subject: [PATCH] modify json.hpp to compile with recent gcc --- ext/json.hpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ext/json.hpp b/ext/json.hpp index bc682e8..c2e1f20 100644 --- a/ext/json.hpp +++ b/ext/json.hpp @@ -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;