This is the mail archive of the gcc-bugs@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: g++-980308: bug in template template parameter implementation again [Sorry Kriang;-)!]


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


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