This is the mail archive of the gcc@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: Question about gcc 3.x


On Friday 08 November 2002 14:28, Gerald Pfeifer wrote:
> On Fri, 8 Nov 2002, Pascal Francq wrote:
> > warning: `typename RGA::RGASignalsReceiver<cInst, cChromo,
> > cFit>::GenSig' is implicitly a typename
> > [...]
> > Any idea?
>
> Yes, please consider a good book on the "new" C++ ISO standard.
>
> GCC 3.0, 3.1, and 3.2 are increasingly more standards compliant than
> GCC 2.95, and the warning you are getting is one of the results.
>
> (If you search the documentation for GCC 3.2, you will find the following
> there, so in the future GCC will not just warn, but reject your code:
>
>   The implicit typename extension has been deprecated and will be
>   removed from g++ at some point.  In some cases g++ determines that a
>   dependant type such as `TPL<T>::X' is a type without needing a
>   `typename' keyword, contrary to the standard.
> )
>
> Hope this helps,
> Gerald

Thanks, it works by adding the keyword 'typename'. I did not know about this 
keyword, and I do not understand why this keyword must be added. I will look 
for an updated C++ book in the next weeks.
-- 


Ir Pascal Francq
Researcher
Université Libre de Bruxelles
CAD/CAM Department
Avenue F.D. Roosevelt, 50
CP 165/14
B-1050 Brussels
BELGIUM
Tel. +32-2-650 47 65
Fax +32-2-650 47 24
ICQ: 91206668


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