mirror of
https://github.com/boostorg/ublas.git
synced 2026-02-24 04:22:12 +00:00
Comeau noticed that != required to equity comparible for index_pair/triple
This commit is contained in:
@@ -1620,6 +1620,10 @@ namespace boost { namespace numeric { namespace ublas {
|
||||
return lhs.equal(rhs);
|
||||
}
|
||||
BOOST_UBLAS_INLINE
|
||||
friend bool operator != (const self_type& lhs, const self_type& rhs) {
|
||||
return !lhs.equal(rhs);
|
||||
}
|
||||
BOOST_UBLAS_INLINE
|
||||
friend bool operator < (const self_type& lhs, const self_type& rhs) {
|
||||
return lhs.less(rhs);
|
||||
}
|
||||
@@ -1648,6 +1652,11 @@ namespace boost { namespace numeric { namespace ublas {
|
||||
}
|
||||
template<class V>
|
||||
BOOST_UBLAS_INLINE
|
||||
bool operator != (const index_pair<V>& lhs, const index_pair<V>& rhs) {
|
||||
return !lhs.equal(rhs);
|
||||
}
|
||||
template<class V>
|
||||
BOOST_UBLAS_INLINE
|
||||
bool operator < (const index_pair<V>& lhs, const index_pair<V>& rhs) {
|
||||
return lhs.less(rhs);
|
||||
}
|
||||
@@ -1797,6 +1806,10 @@ namespace boost { namespace numeric { namespace ublas {
|
||||
return lhs.equal(rhs);
|
||||
}
|
||||
BOOST_UBLAS_INLINE
|
||||
friend bool operator != (const self_type& lhs, const self_type& rhs) {
|
||||
return !lhs.equal(rhs);
|
||||
}
|
||||
BOOST_UBLAS_INLINE
|
||||
friend bool operator < (const self_type& lhs, const self_type& rhs) {
|
||||
return lhs.less(rhs);
|
||||
}
|
||||
@@ -1826,6 +1839,11 @@ namespace boost { namespace numeric { namespace ublas {
|
||||
}
|
||||
template<class M>
|
||||
BOOST_UBLAS_INLINE
|
||||
bool operator != (const index_triple<M>& lhs, const index_triple<M>& rhs) {
|
||||
return lhs.equal(rhs);
|
||||
}
|
||||
template<class M>
|
||||
BOOST_UBLAS_INLINE
|
||||
bool operator < (const index_triple<M>& lhs, const index_triple<M>& rhs) {
|
||||
return lhs.less(rhs);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user