Adam Badura


Adam Badura is a software developer and an architect at Nokia. He has over 10 years of work experience, however, his passion for programming (with C++ mostly) is much older. Adam's interests are mostly the development of good software across all levels: from general design to technical details of specific implementation. His natural bent for formal things is complemented by the eagerness to share his own experience and learn from the experience of others.



Getting type name at compile time (2018)

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.