template specialisation (bug?)

Alexandre Oliva aoliva@redhat.com
Tue Sep 4 19:24:00 GMT 2001


On Aug 27, 2001, Mirko Vogel <mvogel@ux11.sp.cs.cmu.edu> wrote:

> Am I using wrong syntax, or is it really not implemented yet?

There's no such thing as partial specialization of function
templates.  The C++ Standard only specifies partial specialization for
class templates.  There are explicit specializations of both, though.

The solution is to overload the template definition.  Overload
resolution will then select the more specialized template definition.

-- 
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-help mailing list