binary_function is removed from equal and unary_function removed from tests.

This commit is contained in:
Mike Maximoff
2017-06-19 19:03:00 +03:00
parent 968d30e9e3
commit 000040b3d9
5 changed files with 6 additions and 6 deletions

View File

@ -18,7 +18,7 @@
#include <list>
template<typename T>
struct is_ : public std::unary_function<T, bool> {
struct is_ {
BOOST_CXX14_CONSTEXPR is_ ( T v ) : val_ ( v ) {}
BOOST_CXX14_CONSTEXPR bool operator () ( T comp ) const { return val_ == comp; }
private:
@ -94,7 +94,7 @@ void test_one ()
BOOST_CXX14_CONSTEXPR bool constexpr_res = (
!ba::one_of ( some_numbers, is_<int> ( 6 ))
&& ba::one_of ( some_numbers, some_numbers + 3, is_<int> ( 1 ))
&& ba::one_of ( some_numbers + 1, some_numbers + 3, is_<int> ( 1 ))
);
BOOST_CHECK ( constexpr_res );