From: Vincent Torri <torri@math.u-strasbg.fr>
To: gcc-help@gcc.gnu.org
Subject: incompatibility between g++ and vc++ (again)
Date: Tue, 15 Jun 2004 22:13:00 -0000 [thread overview]
Message-ID: <Pine.SOL.4.21.0406160002210.11518-100000@irmasrv2> (raw)
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
next reply other threads:[~2004-06-15 22:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-15 22:13 Vincent Torri [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.SOL.4.21.0406160002210.11518-100000@irmasrv2 \
--to=torri@math.u-strasbg.fr \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).