From 577b25d6d0803fca2dc872b8d89f0b701d23bb29 Mon Sep 17 00:00:00 2001 From: Michael Stevens Date: Tue, 5 Jul 2005 19:47:05 +0000 Subject: [PATCH] FIX const correctness of row/column projects, removed bogus row/column_const svn path=/trunk/boost/boost/numeric/ublas/; revision=29900 --- include/boost/numeric/ublas/matrix_proxy.hpp | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) 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