2
0
mirror of https://github.com/boostorg/ublas.git synced 2026-02-17 14:12:10 +00:00

FIX const correctness of row/column projects, removed bogus row/column_const

svn path=/trunk/boost/boost/numeric/ublas/; revision=29900
This commit is contained in:
Michael Stevens
2005-07-05 19:47:05 +00:00
parent 2fcfd5c425
commit 577b25d6d0

View File

@@ -469,14 +469,9 @@ namespace boost { namespace numeric { namespace ublas {
}
template<class M>
BOOST_UBLAS_INLINE
matrix_row<const M> row_const (const M &data, typename M::size_type i) {
const matrix_row<const M> row (const M &data, typename M::size_type i) {
return matrix_row<const M> (data, i);
}
template<class M>
BOOST_UBLAS_INLINE
matrix_row<M> row (const M &data, typename M::size_type i) {
return matrix_row<M> (const_cast<M &> (data), i);
}
// Specialize temporary
template <class M>
@@ -925,14 +920,9 @@ namespace boost { namespace numeric { namespace ublas {
}
template<class M>
BOOST_UBLAS_INLINE
matrix_column<const M> column_const (const M &data, typename M::size_type j) {
const matrix_column<const M> column (const M &data, typename M::size_type j) {
return matrix_column<const M> (data, j);
}
template<class M>
BOOST_UBLAS_INLINE
matrix_column<M> column (const M &data, typename M::size_type j) {
return matrix_column<M> (const_cast<M &> (data), j);
}
// Specialize temporary
template <class M>