This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: type_info::name question


> What means `portable' in that case? I don't expect the same result on
> all platform, I just expect any readable representation of the typename.

Define 'readable'. I can certainly read the strings g++ produces right
now.

> Perhaps I should give an example for my intended purpose. 
> I've a library for parsing command line options. Some of these options
> take parameters. There is an automatic help facility: The library can,
> without any application code, print the type of the expected parameters.

See, this is exactly the problem: Your intended purposes clashes with
other peoples uses of this function. Other people use it for
externalization of objects, and expect reliable unique identification.
Return 'test' for a class that is nested in a template would then just
break.

I don't think anything will happen about this in the near future, so
you'll have to stick with linking libiberty.

Regards,
Martin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]