g++ 2.95 typeinfo::name()
Gabriel Dos Reis
Gabriel.Dos-Reis@cmla.ens-cachan.fr
Mon Jan 22 05:03:00 GMT 2001
<rssh@gvinpin.grad.kiev.ua> writes:
| On 22 Jan 2001, Alexandre Oliva wrote:
|
| > On Jan 22, 2001, "Kellogg, Oliver" <Oliver.Kellogg@vs.dasa.de> wrote:
| >
| > > Is it correct that the typeinfo::name() method of g++-2.95
| > > returns a number, i.e. the length of following characters,
| > > prefixed to the actual name?
| >
| > Yep. It would also be correct if it just returned an empty string for
| > all types.
|
| No. must be true:
|
| typeof(x)==typeof(y) <=> typeof(x).name equal typeof(y).name()
There is nothing named typeof in C++, so what?
-- Gaby
CodeSourcery, LLC http://www.codesourcery.com
More information about the Gcc
mailing list