partial specialization

Alexandre Oliva oliva@dcc.unicamp.br
Tue Feb 24 20:53:00 GMT 1998


I don't know how to fix the bug, but I thought I should tell you that
you must declare your particular overload of operator<< before you
refer to it in a friend declaration.  Currently, egcs doesn't report
any error, but it should.

Furthermore, your partial specialization is not a valid one.  Since
you're specifying all the arguments to the class template, this is not
a partial specialization, it is an explicit specialization, and, in
this case, the template argument list just after the `template'
keyword must be empty.  A template specialization completely replaces
the general template specification.

-- 
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil



More information about the Gcc-bugs mailing list