1 template<class Element> struct TMatrixT; 2 typedef TMatrixT<double> TMatrixD; 3 4 void f(const TMatrixD &m); 5 6 template<class Element> struct TMatrixT { 7 template <class Element2> TMatrixT(const TMatrixT<Element2> &); ~TMatrixTTMatrixT8 ~TMatrixT() {} DeterminantTMatrixT9 void Determinant () { f(*this); } 10 }; 11 12 template struct TMatrixT<float>; 13 template struct TMatrixT<double>; 14