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 {