From bea1665ac9a5e7aa4fa93668ff35723385a27bfd Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Mon, 5 Jun 2017 09:01:19 +0800 Subject: [PATCH] modify json.hpp to compile with recent gcc https://github.com/nlohmann/json/issues/606 --- ext/json.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/json.hpp b/ext/json.hpp index c2e1f20..48d797d 100644 --- a/ext/json.hpp +++ b/ext/json.hpp @@ -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: