Providing *implicit* conversion operator for template specialization

Posted by Neil G on Stack Overflow See other posts from Stack Overflow or by Neil G
Published on 2010-06-07T20:45:25Z Indexed on 2010/06/07 21:02 UTC
Read the original article Hit count: 216

I have a templated sparse_vector<T> class, and I am also using Boost UBLAS. How would I provide implicit conversions between sparse_vector<double> and boost::numeric::ublas::compressed_vector<double>?

I would also like to provide similar conversions between std::vector<double> and boost::numeric::ublas::vector<double>.

(I am using gcc 4.4 with C++0x enabled.)

© Stack Overflow or respective owner

Related posts about c++

Related posts about templates