2
0
mirror of https://github.com/boostorg/ublas.git synced 2026-02-21 15:32:12 +00:00

use bad_index when no reference to const_member

svn path=/trunk/boost/boost/numeric/ublas/; revision=24758
This commit is contained in:
Michael Stevens
2004-08-26 14:36:21 +00:00
parent 3f686f81a5
commit b30a62eea2
2 changed files with 9 additions and 9 deletions

View File

@@ -165,7 +165,7 @@ namespace boost { namespace numeric { namespace ublas {
l, lower_ + 1 + upper_)];
#endif
#ifndef BOOST_UBLAS_REFERENCE_CONST_MEMBER
external_logic ().raise ();
bad_index ().raise ();
#endif
return zero_;
}
@@ -1180,7 +1180,7 @@ namespace boost { namespace numeric { namespace ublas {
return data () (i, j);
#endif
#ifndef BOOST_UBLAS_REFERENCE_CONST_MEMBER
external_logic ().raise ();
bad_index ().raise ();
#endif
return zero_;
}
@@ -1203,7 +1203,7 @@ namespace boost { namespace numeric { namespace ublas {
return data () (i, j);
#endif
#ifndef BOOST_UBLAS_REFERENCE_CONST_MEMBER
external_logic ().raise ();
bad_index ().raise ();
#endif
return zero_;
}

View File

@@ -130,12 +130,12 @@ namespace boost { namespace numeric { namespace ublas {
return data () [functor1_type::element (functor2_type (), i, size1_, j, size2_)];
else if (functor1_type::one (i, j)) {
#ifndef BOOST_UBLAS_REFERENCE_CONST_MEMBER
external_logic ().raise ();
bad_index ().raise ();
#endif
return one_;
} else {
#ifndef BOOST_UBLAS_REFERENCE_CONST_MEMBER
external_logic ().raise ();
bad_index ().raise ();
#endif
return zero_;
}
@@ -1053,12 +1053,12 @@ namespace boost { namespace numeric { namespace ublas {
return data () (i, j);
else if (functor_type::one (i, j)) {
#ifndef BOOST_UBLAS_REFERENCE_CONST_MEMBER
external_logic ().raise ();
bad_index ().raise ();
#endif
return one_;
} else {
#ifndef BOOST_UBLAS_REFERENCE_CONST_MEMBER
external_logic ().raise ();
bad_index ().raise ();
#endif
return zero_;
}
@@ -1072,12 +1072,12 @@ namespace boost { namespace numeric { namespace ublas {
return data () (i, j);
else if (functor_type::one (i, j)) {
#ifndef BOOST_UBLAS_REFERENCE_CONST_MEMBER
external_logic ().raise ();
bad_index ().raise ();
#endif
return one_;
} else {
#ifndef BOOST_UBLAS_REFERENCE_CONST_MEMBER
external_logic ().raise ();
bad_index ().raise ();
#endif
return zero_;
}