diff --git a/include/boost/numeric/ublas/matrix_proxy.hpp b/include/boost/numeric/ublas/matrix_proxy.hpp index a0d31876..02fbf649 100644 --- a/include/boost/numeric/ublas/matrix_proxy.hpp +++ b/include/boost/numeric/ublas/matrix_proxy.hpp @@ -469,14 +469,9 @@ namespace boost { namespace numeric { namespace ublas { } template BOOST_UBLAS_INLINE - matrix_row row_const (const M &data, typename M::size_type i) { + const matrix_row row (const M &data, typename M::size_type i) { return matrix_row (data, i); } - template - BOOST_UBLAS_INLINE - matrix_row row (const M &data, typename M::size_type i) { - return matrix_row (const_cast (data), i); - } // Specialize temporary template @@ -925,14 +920,9 @@ namespace boost { namespace numeric { namespace ublas { } template BOOST_UBLAS_INLINE - matrix_column column_const (const M &data, typename M::size_type j) { + const matrix_column column (const M &data, typename M::size_type j) { return matrix_column (data, j); } - template - BOOST_UBLAS_INLINE - matrix_column column (const M &data, typename M::size_type j) { - return matrix_column (const_cast (data), j); - } // Specialize temporary template