Hi there,
I use an overloaded matrix class with overloaded output and multiplication operators
template <typename T> class Matrix {
...
friend ostream& operator<<<>(ostream&, Matrix&;
...
}
template <typename T> Matrix<Z> operator*(const Matrix<Z> &, const Matrix<Z> &;
Whenever I try to output the result of a multiplication
cout << (A*B) << endl;
i get an error
main.cpp:33: could not convert `operator*((&EI))'' to Matrix<cx> &''
matrix.h:215: in passing argument 2 of `operator<< ostream &, Matrix<Z> & [with Z = cx]''
What on earth is wrong with this? (gcc v2.95)
thanking you ...