On 10/15/06, YYW
Hello all, why the codes below is wrong in g++ 3.4.2? an error occurs in the line: cout<
Whats the error? Kobi. --------------------------------------
#include <ostream> #include
#include using namespace boost::numeric::ublas; using namespace std;
template <class T> class CMatrix { matrix<T>mat_;
public: CMatrix(const identity_matrix<T>& m) { mat_ = m; } static CMatrix<T> eye(int size) { return identity_matrix<T>(size); }
template <class T_> friend ostream& operator << (ostream& os, CMatrix
& m); }; template<class T_> ostream& operator << (ostream& os, CMatrix
& m) { os< int main() { CMatrix<double>I = CMatrix<double>::eye(5); cout<
cout<
error } ---------------------------------------- Thanks in advance! _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- - Kobi