g++-980308: bug in template template parameter implementation again [Sorry Kriang;-)!]

Alexandre Oliva oliva@dcc.unicamp.br
Fri Mar 13 13:48:00 GMT 1998


Bernd Nottelmann writes:

>   template <> Add < T, Id, Id > operator+(const Id<T>& e) const {

For explicit specialization of a template function, the template
function name must be followed by angle brackets:

   template <> Add < T, Id, Id > operator+<>(const Id<T>& e) const {
                                          ^^
I don't know whether this helps fixing the problem, though.

-- 
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