Fix gcc compilation error

This commit is contained in:
Milo Yip 2016-02-14 06:14:12 +08:00
parent effc8a8f30
commit 923db0e641

View File

@ -399,12 +399,7 @@ template <typename T> struct IsGenericValue : IsGenericValueImpl<T>::Type {};
namespace internal {
template <typename ValueType, typename T>
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<typename ValueType>
struct TypeHelper<ValueType, bool> {