pthom / pretty_function_sandbox

This repo demonstrates how `__PRETTY_FUNCTION__` can be used in order to get compile time type information.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pretty Function Sandbox

This repo demonstrates how __PRETTY_FUNCTION__ can be used in order to get compile time type information.

As of now (Dec 2018), Clang and MSVC support this, GCC does not.

The rule of thumb is that the expression below should be supported in order for this feature to be supported.

    constexpr char const* pretty_function = __PRETTY_FUNCTION__;

About

This repo demonstrates how `__PRETTY_FUNCTION__` can be used in order to get compile time type information.


Languages

Language:C++ 93.3%Language:CMake 5.7%Language:Makefile 1.1%