Re: incompatibility between g++ and vc++ (again)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Wed, 16 Jun 2004, Gabriel Dos Reis wrote:

> 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.

it works ;)

thanks a lot !

Vincent TORRI


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux