2 Aug
2010
2 Aug
'10
6:05 p.m.
Suppose we are working in namespace boost::numeric::ublas and I have 2 functions 1) template <class T> save_matrix(matrix<T> const &m) 2) template <class T> save_matrix(triangular_matrix<T,lower> const &m) and the code in both overloaded save_matrix functions is identical. How can I write a templated function which accepts any type of a matrix? I tried this, but it didn't work: template <class T> save_matrix(T const &m) Thanks, Max