From d7b6e720d03a54f52432c092ef12e32ddef832a3 Mon Sep 17 00:00:00 2001 From: Michael Stevens Date: Wed, 6 Jul 2005 18:51:29 +0000 Subject: [PATCH] FIX corrected semantics of range, slice, indirect_array which failed if parameter we same as all [SVN r29912] --- include/boost/numeric/ublas/storage.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/boost/numeric/ublas/storage.hpp b/include/boost/numeric/ublas/storage.hpp index a882a99a..d3b6280d 100644 --- a/include/boost/numeric/ublas/storage.hpp +++ b/include/boost/numeric/ublas/storage.hpp @@ -996,7 +996,7 @@ namespace boost { namespace numeric { namespace ublas { BOOST_UBLAS_INLINE basic_range preprocess (size_type size) const { - if (*this != &all_) + if (this != &all_) return *this; return basic_range (0, size); } @@ -1199,13 +1199,13 @@ namespace boost { namespace numeric { namespace ublas { BOOST_UBLAS_INLINE basic_slice preprocess (size_type size) const { - if (*this != all_) + if (this != &all_) return *this; return basic_slice (0, 1, size); } static BOOST_UBLAS_INLINE - const basic_slice& all () { + const basic_slice &all () { return all_; }