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

FIX corrected semantics of range, slice, indirect_array which failed if parameter we same as all

[SVN r29912]
This commit is contained in:
Michael Stevens
2005-07-06 18:51:29 +00:00
parent 86cc55674b
commit d7b6e720d0

View File

@@ -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_;
}