This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Template function specialization
- To: Ryszard dot Kabatek at softax dot pl
- Subject: Re: Template function specialization
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 05 Apr 2001 23:35:00 -0300
- Cc: gcc at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <3ACC414F.6A7D582C@softax.pl>
On Apr 5, 2001, Ryszard Kabatek <Ryszard.Kabatek@softax.pl> wrote:
> spec.cc:16: non-template used as template
> spec.cc:16: syntax error before `{' token
> As far as I know the original version should compile.
> I am supposing a compiler bug. I am right?
Nope. The angle brackets are required in template specializations,
even if all template arguments can be deduced from the function
argument list.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me