This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: Inherite from template witth gcc 3.4
- From: "Lev Assinovsky" <LAssinovsky at algorithm dot aelita dot com>
- To: "Florian Weimer" <fw at deneb dot enyo dot de>,"Laurent Marzullo" <marzullo at la-defense dot oilfield dot slb dot com>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: Wed, 9 Jun 2004 19:36:40 +0400
- Subject: 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.
>