type_info::name question
Thomas Kunert
kunert@physik.tu-dresden.de
Wed Sep 16 01:48:00 GMT 1998
Alexandre Oliva wrote:
>
> Ryszard Kabatek <rysio@rumcajs.chemie.uni-halle.de> writes:
>
> > Is there any possibility to get the class name from type_info::name?
>
> You might run `c++filt' and feed it the result of type_info::name(),
> but you may prefer to create a library containing the unmangler
> functions from c++filt and link your program with it.
IMHO, type_info::name isn't useful at all if it returns some cryptic
string. Is there some intention behind that behavior or is it just the
shortest way towards conformance? Almost everybody, who wants to use
that function, would like it to return some readable typename. The
compiler already contains unmangler code, doesn't it? Of course I know
there are many more important thing to do, and it's easier to request a
feature than providing a patch, but perhaps someone has some sparetime
:)
--
Thomas Kunert
More information about the Gcc
mailing list