Go to the documentation of this file. 30 template<
typename T>
const char* get_type_name() {
return typeid(T).name();}
33 #define DEFINE_TYPE(X) \ 34 template<>const char* get_type_name<X>(){return #X;} 36 #define DEFINE_TYPE_NAME(X,N) \ 37 template<>const char* get_type_name<X>(){return N;} 42 DEFINE_TYPE(
short int);
43 DEFINE_TYPE(
unsigned short int);
45 DEFINE_TYPE(
unsigned int);
46 DEFINE_TYPE(
long int);
47 DEFINE_TYPE(
unsigned long int);
48 DEFINE_TYPE(
long long int);
49 DEFINE_TYPE(
unsigned long long int);
53 DEFINE_TYPE(
long double);