From 923db0e6413a5589a67fdc7f5b2e694f09e6f16c Mon Sep 17 00:00:00 2001 From: Milo Yip Date: Sun, 14 Feb 2016 06:14:12 +0800 Subject: [PATCH] Fix gcc compilation error --- include/rapidjson/document.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h index 1ce2e4f..bd47e0c 100644 --- a/include/rapidjson/document.h +++ b/include/rapidjson/document.h @@ -399,12 +399,7 @@ template struct IsGenericValue : IsGenericValueImpl::Type {}; namespace internal { template -struct TypeHelper { - static bool Is(const ValueType&) { RAPIDJSON_ASSERT(false && "Unsupport type"); } - static T Get(const ValueType&) { RAPIDJSON_ASSERT(false && "Unsupport type"); return T(); } - static ValueType& Set(ValueType&, T) { RAPIDJSON_ASSERT(false && "Unsupport type"); } - static ValueType& Set(ValueType&, T, typename ValueType::AllocatorType&) { RAPIDJSON_ASSERT(false && "Unsupport type"); } -}; +struct TypeHelper {}; template struct TypeHelper {