On Saturday 07 June 2014 00:29:57 Antony Polukhin wrote:
2014-06-06 23:56 GMT+04:00 Peter Dimov
: Andrey Semashev wrote:
However I'd prefer it to be detached from type_info. This tool would be
useful with different kinds of symbols, like function and variable names, not just type_info. So it better accept a string as an argument and not type_info. demangled_name() should probably be in core/typeinfo.hpp.
Do not move it into the typeinfo.hpp. This file will be deprecated or replaced with TypeIndex soon. It's better to keep it separate.
demangled_name() is just a helper function that forwards core::typeinfo::name() to demangle(). In case if core::typeinfo is replaced with Boost.TypeIndex then there's no use for it. demangle(), on the other hand, can be useful without it, and it should stay.