add support for signed char

This commit is contained in:
Alexandra Heuschling
2020-11-29 17:38:19 +01:00
parent 0b18560655
commit 4fb3e8a7f3
2 changed files with 7 additions and 4 deletions

View File

@@ -36,6 +36,7 @@ inline std::string get_string_for_type(OpenMesh::VertexHandle){ return "vertexh
inline std::string get_string_for_type(bool){ return "bool";}
inline std::string get_string_for_type(char){ return "char";}
inline std::string get_string_for_type(signed char){ return "signed 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";}
@@ -44,6 +45,7 @@ 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";}
inline std::string get_string_for_type(unsigned long){ return "ulong";}
template <typename T> std::string get_string_for_type(T){return "unknown";}
template <typename T> std::string get_string_for_type(std::vector<T>){ return "std::vector<" + get_string_for_type(T()) + ">";}