This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: typeof() in templates



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. 



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]