This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: typeid().name() for references
- To: "David J. Murray" <1dmurray at home dot com>
- Subject: Re: typeid().name() for references
- From: "Lassi A. Tuura" <lat at iki dot fi>
- Date: Thu, 11 Jun 1998 16:11:22 +0200 (METDST)
- cc: egcs at cygnus dot com
- Reply-To: "Lassi A. Tuura" <lat at iki dot fi>
|> Can anyone tell me why typeid(X&).name() == typeid(X).name() ? Is this
|> the desired result?
Because that is what the standard says (5.2.8/4, [expr.typeid])---at
least it did in Dec'96 draft.
//lat
--
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going
to land, and it could be dangerous sitting under them as they fly
overhead. --RFC1925, "The Twelve Networking Truths"