Boost logo

Boost :

From: Rene Rivera (grafikrobot_at_[hidden])
Date: 2007-04-25 17:22:58


Stefan Seefeld wrote:
> Philippe Vaucher wrote:
>>> Is the format of the output string specified in the
>>> standard? i.e can I trust that it will be the same from compiler to
>>> compiler in
>>> order to use it in cross-platform code?
>>
>>
>> No, but I know gcc gives you a demangle function so you can get a proper
>> name out of it.
>> If you're really interested I can try to find it.
>
> Just look into the implementation of boost.python. Gcc's demangler is
> used there to produce convenient error / exception text.

Note also that it's not just a compiler to compiler difference in the
typeid names. They differ from one compiler version to the next compiler
version. So if you want consistent names, you either create them
yourself, or use demangling utilities.

-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org - grafik/redshift-software.com
-- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo

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