This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Template function specialization


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]