From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Merrill To: kunert@physik.tu-dresden.de (Thomas Kunert), egcs@cygnus.com Subject: Re: type_info::name question Date: Mon, 21 Sep 1998 14:55:00 -0000 Message-id: References: <35FF61BF.301D5EC7.cygnus.egcs@physik.tu-dresden.de> X-SW-Source: 1998-09/msg01206.html >>>>> Thomas Kunert writes: > Alexandre Oliva wrote: >> >> Ryszard Kabatek 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? Two reasons: 1) The mangled name is shorter, so the RTTI overhead is lower. 2) The mangled name is unique. Jason