]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/type.h
Recognize char pointers as strings
[libs/datafile.git] / source / type.h
index 58766289bc172a0e214917c961452976fac5645e..85cfec40f2afc9aa79f38d646baf64dea473cd0a 100644 (file)
@@ -123,6 +123,12 @@ struct TypeInfo<bool, false>: BoolType { };
 template<>
 struct TypeInfo<std::string, false>: StringType { };
 
+template<>
+struct TypeInfo<char *, false>: StringType { };
+
+template<>
+struct TypeInfo<const char *, false>: StringType { };
+
 template<typename T>
 struct TypeInfo<const T, false>: TypeInfo<T> { };