From: Mikko Rasa Date: Thu, 27 Sep 2012 22:15:32 +0000 (+0300) Subject: Recognize char pointers as strings X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=bdd957e58dc6fdaa3cac1202daf0d16d41491278;p=libs%2Fdatafile.git Recognize char pointers as strings statement.append("literal") was creating a symbol value, which was not following the principle of least surprise. --- diff --git a/source/type.h b/source/type.h index 5876628..85cfec4 100644 --- a/source/type.h +++ b/source/type.h @@ -123,6 +123,12 @@ struct TypeInfo: BoolType { }; template<> struct TypeInfo: StringType { }; +template<> +struct TypeInfo: StringType { }; + +template<> +struct TypeInfo: StringType { }; + template struct TypeInfo: TypeInfo { };