Getting type name at compile time
05 February 2019
C++ language contains standard __func__ variable which is a string naming the function where it is used. Major vendors offer even more expressive symbols in their compilers (__PRETTY_FUNCTION__ in GCC and clang, __FUNCSIG__ in VC). What is missing, however, is a similar solution to get a type name without using RTTI. In this short presentation, I will show how to achieve this - how to get type name at compile time, without the support of RTTI.