public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* incompatibility between g++ and vc++ (again)
@ 2004-06-15 22:13 Vincent Torri
  2004-06-16  5:41 ` Gabriel Dos Reis
  0 siblings, 1 reply; 7+ messages in thread
From: Vincent Torri @ 2004-06-15 22:13 UTC (permalink / raw)
  To: gcc-help


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>(),
source.GetEnvironment() );

    //...

    return result;
  }

};

gcc does not like Turn<bpp>() in the leftturner class. I have the
following error : 
 
../../src/core/bufferwindow/leftturner.h: In member function
`avs::BufferWindow avs::bw::LeftTurner<bpp>::operator()(const
avs::BufferWindow&) const':
../../src/core/bufferwindow/leftturner.h:47: error: syntax error before
`;' token

I can trasform Turn into a "real" function. But i prefer not doing that.

Does someone understand why it does not work with g++ ?

Thank you !

Vincent TORRI


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-06-25 12:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-15 22:13 incompatibility between g++ and vc++ (again) Vincent Torri
2004-06-16  5:41 ` Gabriel Dos Reis
2004-06-16  5:55   ` Vincent Torri
2004-06-18 21:24   ` incompatibility between g++ and vc++: Mutex Vincent Torri
2004-06-18 23:25     ` Eljay Love-Jensen
2004-06-19  8:23       ` Vincent Torri
2004-06-25 12:40     ` incompatibility between g++ and vc++: Mutex (solved) Vincent Torri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).