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:
@@ -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_;
|
||||
}
|
||||
|
||||
@@ -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_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user