Template function specialization
Alexandre Oliva
aoliva@redhat.com
Thu Apr 5 19:35:00 GMT 2001
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
More information about the Gcc
mailing list