This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: incompatibility between g++ and vc++ (again)
- From: "Gabriel Dos Reis" <gdr at acm dot org>
- To: "Vincent Torri" <torri at math dot u-strasbg dot fr>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Wed, 16 Jun 2004 07:41:11 +0200 (CEST)
- Subject: Re: incompatibility between g++ and vc++ (again)
- References: <Pine.SOL.4.21.0406160002210.11518-100000@irmasrv2>
- Reply-to: gdr at acm dot org
You Wrote Vincent Torri
>
> Hello,
>
> i have another problem with vc+ and gcc. gcc does not like the syntax i
> show below, whereas vc+ does not complain. Here is piece of code:
>
>
> class Dimension
> { ...
> template <int bps> Dimension Turn() const {.....}
> ...
> };
>
>
> template <int bpp> class LeftTurner
> {
>
> public:
>
> BufferWindow operator()(BufferWindow const& source) const
> {
> BufferWindow result( source.GetDimension().Turn<bpp>(),
^^^^^
Say:
source.GetDimension().template Turn<bpp>()
This is documented in our FAQ.