Topic: Bug in g++2.8.0 or it's just me ?
Author: Philippe Lavoie <lavoie@zeus.genie.uottawa.ca>
Date: 1998/01/23 Raw View
Hi,
The following declaration (inside the Matrix class) is fine (according
to g++2.8.0.
friend Matrix<T> operator+ <>(const Matrix<T>&,
const Matrix<T>&);
This one isn't
friend Matrix<T> comm <>(const Matrix<T>& ,
const Matrix<T>& );
I'm stumped. Is this a bug or am I missing something ?
Thanks
Phil
---
[ comp.std.c++ is moderated. To submit articles: try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ FAQ: http://reality.sgi.com/employees/austern_mti/std-c++/faq.html ]
[ Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu ]
Author: Alexandre Oliva <oliva@dcc.unicamp.br>
Date: 1998/01/24 Raw View
Philippe Lavoie writes:
> The following declaration (inside the Matrix class) is fine (according
> to g++2.8.0.
[friend operator+<>]
> This one isn't
[friend comm<>(...)]
Probably because some template operator+ that matches your declaration
was declared before, but no template function comm was.
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil
---
[ comp.std.c++ is moderated. To submit articles: try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ FAQ: http://reality.sgi.com/employees/austern_mti/std-c++/faq.html ]
[ Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu ]