From f0ec022bd08e02ff176a9f029eb3551915b30b55 Mon Sep 17 00:00:00 2001 From: Dimitar Trendafilov Date: Sun, 4 Oct 2020 08:40:20 +0300 Subject: Fix build with GCC 8.3.0 - CheckOpCode takes an int, otherwise it will always return true --- JSImpl/src/JSONParser.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'JSImpl/src/JSONParser.cpp') diff --git a/JSImpl/src/JSONParser.cpp b/JSImpl/src/JSONParser.cpp index 13ad9d6..275fb0e 100644 --- a/JSImpl/src/JSONParser.cpp +++ b/JSImpl/src/JSONParser.cpp @@ -3,6 +3,7 @@ #include #include +#include void SkipWhitespaces(const char*& json) { @@ -71,7 +72,7 @@ ExpressionPtr JSONParseWrap(const char*& json, const char* eName) template <> \ ExpressionPtr JSONParseWrap(const char*& json, const char* eName) \ { \ - auto ptr = IPLMakeSharePtr<::##ClassName>(); \ + auto ptr = IPLMakeSharePtr<::ClassName>(); \ int membersCount = 0, currentVisitCount = 0; \ (void)currentVisitCount; \ json += strlen("{"); \ -- cgit v1.3.1-23-gd82d