This is the mail archive of the gcc-help@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]
Other format: [Raw text]

RE: Inherite from template witth gcc 3.4


I don't know why, but this->
doesn't work. Base::xxx does work.

----
Lev Assinovsky
Aelita Software Corporation 
(now is a part of Quest Software)
O&S InTrust Framework Division, Team Leader
ICQ# 165072909


> -----Original Message-----
> From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org]On
> Behalf Of Florian Weimer
> Sent: Wednesday, June 09, 2004 4:41 PM
> To: Laurent Marzullo
> Cc: gcc-help@gcc.gnu.org
> Subject: Re: Inherite from template witth gcc 3.4
> 
> 
> * Laurent Marzullo:
> 
> > I should specify, explicitly, MyClass<_type>::m_value for 
> the program
> > to compile. Why should I specify the base class for accessing this
> > member ?
> 
> You don't have to specify the base class, using "this->" is quite
> enough.  GCC 3.4 requires C++ programs to conform more closely to the
> standard, and the issue you spotted is a consequence.
> 
> -- 
> Current mail filters: many dial-up/DSL/cable modem hosts, and the
> following domains: bigpond.com, di-ve.com, fuorissimo.com, 
> hotmail.com,
> jumpy.it, libero.it, netscape.net, postino.it, simplesnet.pt, 
> spymac.com,
> tiscali.co.uk, tiscali.cz, tiscali.it, voila.fr, yahoo.com.
> 


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