bug #872: Avoid deprecated binder1st/binder2nd usage by providing custom functors for comparison operators

This commit is contained in:
Christoph Hertzberg
2015-05-07 17:28:40 +02:00
parent 4a936974a5
commit 494fa991c3
5 changed files with 102 additions and 25 deletions

View File

@@ -136,6 +136,8 @@ template<typename ArrayType> void comparisons(const ArrayType& m)
VERIFY(! (m1 < m3).all() );
VERIFY(! (m1 > m3).all() );
}
VERIFY(!(m1 > m2 && m1 < m2).any());
VERIFY((m1 <= m2 || m1 >= m2).all());
// comparisons array to scalar
VERIFY( (m1 != (m1(r,c)+1) ).any() );