This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: What is the problem with this use of templates?
- From: John Love-Jensen <eljay at adobe dot com>
- To: Javier Mena <javimena at gmail dot com>, MSX to GCC <gcc-help at gcc dot gnu dot org>
- Date: Tue, 25 Oct 2005 16:49:09 -0500
- Subject: Re: What is the problem with this use of templates?
Hi Javier,
According to http://www.comeaucomputing.com/tryitout/
Comeau C/C++ 4.3.3 (Aug 6 2003 15:13:37) for ONLINE_EVALUATION_BETA1
Copyright 1988-2003 Comeau Computing. All rights reserved.
MODE:strict errors C++
"ComeauTest.c", line 25: error: expected an expression
hello->doSomething<goDown>();
^
1 error detected in the compilation of "ComeauTest.c".
If I change the problem line to be C++ compliant:
hello->template doSomething<goDown>();
Everything compiles.
HTH,
--Eljay