core
core copied to clipboard
add nameof into boost::core::demangle.hpp
#include <typeinfo>
namespace boost
{
namespace core
{
template <typename Type>
inline std::string nameof()
{
return demangle(typeid(Type).name());
}
} // core
} // boost
This saves a lot of manual fiddling around.
thx Gero
See boost::core::type_name.
Thank you. I overlooked that.
regards Gero