help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Decode output from typeid().name()


From: Pedro Lamarão
Subject: Re: Decode output from typeid().name()
Date: Wed, 18 Feb 2009 12:05:38 -0800 (PST)
User-agent: G2/1.0

On 17 fev, 12:13, "C.W.Holeman II" <cwhii_google_s...@yahoo.com>
wrote:
> Pedro Lamarão wrote:
> > On 16 fev, 20:27, "C.W.Holeman II" <cwhii_google_s...@yahoo.com>
> > wrote:
>
> >> Is there a reference that decodes the output from typeid().name()?
>
> > The C++ Standard does not specify the value of that expression.
> > It could very well be the null string in a conforming specification.
>
> Which is the reason I posted to gnu.g++.help not c++.

Good point.

GCC implements the Itanium C++ ABI, specified here:

http://www.codesourcery.com/public/cxx-abi/abi.html

You will see that, contrary to my expectation, this specification does
in fact guarantee some form to that expression.
Search for the demangler API.

--
 P.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]