ciao ragazzi! avrei un problemino. sto costruendo una classe template matrice.... mi da i seguenti errori e warning.... ma non so il perche... sapete dirmi almeno a cosa sono dovuti?
In file included from ..\Matrix.cpp:1:
..\Matrix.h:45: warning: friend declaration `bool operator==(const
matrix<T>&, const matrix<T>&)' declares a non-template function
..\Matrix.h:45: warning: (if this is not what you intended, make sure
the function template has already been declared and add <> after the
function name here) -Wno-non-template-friend disables this warning
..\Matrix.h:46: warning: friend declaration `bool operator!=(const
matrix<T>&, const matrix<T>&)' declares a non-template function
..\Matrix.h:58: warning: friend declaration `matrix<T> operator+(const
matrix<T>&, const matrix<T>&)' declares a non-template function
..\Matrix.h:59: warning: friend declaration `matrix<T> operator-(const
matrix<T>&, const matrix<T>&)' declares a non-template function
..\Matrix.h:61: warning: friend declaration `matrix<T> operator*(const
matrix<T>&, const matrix<T>&)' declares a non-template function
..\Matrix.h:62: warning: friend declaration `matrix<T> operator*(const
matrix<T>&, const T&)' declares a non-template function
..\Matrix.h:64: warning: friend declaration `matrix<T> operator^(const
matrix<T>&, const NEWINT&)' declares a non-template function
..\Matrix.h:66: warning: friend declaration `std::istream&
operator>>(std::istream&, matrix<T>&)' declares a non-template function
..\Matrix.h:67: warning: friend declaration `std:stream&
operator<<(std:stream&, matrix<T>&)' declares a non-template function
..\Matrix.h:210: error: `bool matrix<T>:perator==(const matrix<T>&,
const matrix<T>&)' must take exactly one argument
..\Matrix.h:210: error: no `bool matrix<T>:perator==(const
matrix<T>&, const matrix<T>&)' member function declared in class `matrix<T>'
..\Matrix.h:210: error: template definition of non-template `bool
matrix<T>:perator==(const matrix<T>&, const matrix<T>&)'
Matrice.exe - 3 error(s), 11 warning(s)
grazie in anticipo!

stream&
Rispondi quotando
