Boost logo

Boost :

Subject: Re: [boost] [core] Detach demangle() from type_info
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2014-06-06 16:41:30


On Saturday 07 June 2014 00:29:57 Antony Polukhin wrote:
> 2014-06-06 23:56 GMT+04:00 Peter Dimov <lists_at_[hidden]>:
> > 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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk