2
0
mirror of https://github.com/boostorg/ublas.git synced 2026-02-21 03:22:14 +00:00

MINOR use BOOST_CHECK_FALSE to avoid warnings

[SVN r32516]
This commit is contained in:
Michael Stevens
2006-02-02 18:38:32 +00:00
parent 53981f51c5
commit d4f65b0d3a
2 changed files with 16 additions and 16 deletions

View File

@@ -2099,19 +2099,19 @@ namespace boost { namespace numeric { namespace ublas {
// Arithmetic
BOOST_UBLAS_INLINE
const_iterator1 &operator ++ () {
BOOST_UBLAS_CHECK (false, bad_index ());
BOOST_UBLAS_CHECK_FALSE (bad_index ());
return *this;
}
BOOST_UBLAS_INLINE
const_iterator1 &operator -- () {
BOOST_UBLAS_CHECK (false, bad_index ());
BOOST_UBLAS_CHECK_FALSE (bad_index ());
return *this;
}
// Dereference
BOOST_UBLAS_INLINE
const_reference operator * () const {
BOOST_UBLAS_CHECK (false, bad_index ());
BOOST_UBLAS_CHECK_FALSE (bad_index ());
return zero_; // arbitary return value
}
@@ -2149,12 +2149,12 @@ namespace boost { namespace numeric { namespace ublas {
// Indices
BOOST_UBLAS_INLINE
size_type index1 () const {
BOOST_UBLAS_CHECK (false, bad_index ());
BOOST_UBLAS_CHECK_FALSE (bad_index ());
return 0; // arbitary return value
}
BOOST_UBLAS_INLINE
size_type index2 () const {
BOOST_UBLAS_CHECK (false, bad_index ());
BOOST_UBLAS_CHECK_FALSE (bad_index ());
return 0; // arbitary return value
}
@@ -2208,19 +2208,19 @@ namespace boost { namespace numeric { namespace ublas {
// Arithmetic
BOOST_UBLAS_INLINE
const_iterator2 &operator ++ () {
BOOST_UBLAS_CHECK (false, bad_index ());
BOOST_UBLAS_CHECK_FALSE (bad_index ());
return *this;
}
BOOST_UBLAS_INLINE
const_iterator2 &operator -- () {
BOOST_UBLAS_CHECK (false, bad_index ());
BOOST_UBLAS_CHECK_FALSE (bad_index ());
return *this;
}
// Dereference
BOOST_UBLAS_INLINE
const_reference operator * () const {
BOOST_UBLAS_CHECK (false, bad_index ());
BOOST_UBLAS_CHECK_FALSE (bad_index ());
return zero_; // arbitary return value
}
@@ -2258,12 +2258,12 @@ namespace boost { namespace numeric { namespace ublas {
// Indices
BOOST_UBLAS_INLINE
size_type index1 () const {
BOOST_UBLAS_CHECK (false, bad_index ());
BOOST_UBLAS_CHECK_FALSE (bad_index ());
return 0; // arbitary return value
}
BOOST_UBLAS_INLINE
size_type index2 () const {
BOOST_UBLAS_CHECK (false, bad_index ());
BOOST_UBLAS_CHECK_FALSE (bad_index ());
return 0; // arbitary return value
}

View File

@@ -299,7 +299,7 @@ namespace boost { namespace numeric { namespace ublas {
const_iterator (const self_type &v, const const_subiterator_type &it):
container_const_reference<self_type> (v), it_ (it) {}
BOOST_UBLAS_INLINE
const_iterator (const iterator &it):
const_iterator (const typename vector::iterator &it): // ISSUE vector:: stops VC8 using std::iteraot here
container_const_reference<self_type> (it ()), it_ (it.it_) {}
// Arithmetic
@@ -686,26 +686,26 @@ namespace boost { namespace numeric { namespace ublas {
// Arithmetic
BOOST_UBLAS_INLINE
const_iterator &operator ++ () {
BOOST_UBLAS_CHECK (false, bad_index ());
BOOST_UBLAS_CHECK_FALSE (bad_index ());
return *this;
}
BOOST_UBLAS_INLINE
const_iterator &operator -- () {
BOOST_UBLAS_CHECK (false, bad_index ());
BOOST_UBLAS_CHECK_FALSE (bad_index ());
return *this;
}
// Dereference
BOOST_UBLAS_INLINE
const_reference operator * () const {
BOOST_UBLAS_CHECK (false, bad_index ());
BOOST_UBLAS_CHECK_FALSE (bad_index ());
return zero_; // arbitary return value
}
// Index
BOOST_UBLAS_INLINE
size_type index () const {
BOOST_UBLAS_CHECK (false, bad_index ());
BOOST_UBLAS_CHECK_FALSE (bad_index ());
return 0; // arbitary return value
}
@@ -1465,7 +1465,7 @@ namespace boost { namespace numeric { namespace ublas {
const_iterator (const self_type &v, const const_subiterator_type &it):
container_const_reference<self_type> (v), it_ (it) {}
BOOST_UBLAS_INLINE
const_iterator (const iterator &it):
const_iterator (const typename self_type::iterator &it): // ISSUE self_type:: stops VC8 using std::iteraot here
container_const_reference<self_type> (it ()), it_ (it.it_) {}
// Arithmetic