diff --git a/src/OpenMesh/Core/Utils/typename.hh b/src/OpenMesh/Core/Utils/typename.hh index 44b4f1e9..a1cac622 100644 --- a/src/OpenMesh/Core/Utils/typename.hh +++ b/src/OpenMesh/Core/Utils/typename.hh @@ -9,6 +9,7 @@ #include #include #include +#include namespace OpenMesh { @@ -38,6 +39,8 @@ inline std::string get_string_for_type(char){ return "char";} inline std::string get_string_for_type(double){ return "double";} inline std::string get_string_for_type(float){ return "float";} inline std::string get_string_for_type(int){ return "int";} +inline std::string get_string_for_type(short){ return "short";} + inline std::string get_string_for_type(unsigned char){ return "uchar";} inline std::string get_string_for_type(unsigned int){ return "uint";} inline std::string get_string_for_type(unsigned short){ return "ushort";} @@ -45,8 +48,7 @@ inline std::string get_string_for_type(unsigned short){ return "ushort";} template std::string get_string_for_type(T){return "unknown";} template std::string get_string_for_type(std::vector){ return "std::vector<" + get_string_for_type(T()) + ">";} +template std::string get_string_for_type(OpenMesh::VectorT) +{ return "VectorT<" + get_string_for_type(T()) + ", " + std::to_string(Dim) + ">";} -//template std::string get_string_for_type(OpenMesh::VectorT) -// { return "VectorT<"+ get_string_for_type(T(),"+std::to_string(Dim)+">";} - -} +}//namespace OpenMesh