Is there a compiler out there that returns the name of a type in a readable fashion (or library providing that functionality or tool). Essentially what I want is the string corresponding to the type expression you’d write it in your source code.
Share
is what you are looking for. The output differs from compiler to compiler though… For
gccthe output forintisi, forunsignedisj, for example. Here is a small test program:See also this question: typeid(T).name() alternative in c++11?