]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/value.h
Handle unknown types as enums
[libs/datafile.git] / source / value.h
index 5ebbb5e1e52a101f475e7914089ed21b6febf051..f809c8fe4d3001cfba4660f45b9e9556a15d3ab8 100644 (file)
@@ -36,7 +36,7 @@ private:
 };
 typedef std::vector<Value> ValueArray;
 
-template<typename T> struct TypeResolver { };
+template<typename T> struct TypeResolver { static const Value::Type type=Value::ENUM; };
 
 template<> struct TypeResolver<short>          { static const Value::Type type=Value::INTEGER; };
 template<> struct TypeResolver<unsigned short> { static const Value::Type type=Value::INTEGER; };