This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: typeof() in templates
- To: "Martin v. Loewis" <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Subject: Re: typeof() in templates
- From: Lawrence Foard <entropy at virek dot vwis dot com>
- Date: Mon, 26 Jul 1999 14:15:18 -0700 (PDT)
- cc: egcs-bugs at egcs dot cygnus dot com
On Mon, 26 Jul 1999, Martin v. Loewis wrote:
>
> Please note that "typeof" is a g++ extension, so you shouldn't use it
> unless you have to. In your example, you don't *really* have to. Your
> code assumes that AParticle has an origin member - you could just as
> well assume that it has a OriginType member, i.e.
Thanks.
I had seen typeof() mentioned on several web sites, so I assumed it was a
standard part of C++. but it looks like your suggestion should do the
trick.