Question about gcc 3.x

Gerald Pfeifer pfeifer@dbai.tuwien.ac.at
Fri Nov 8 06:00:00 GMT 2002


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
-- 
Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/



More information about the Gcc mailing list