stopped relying on stdlib function objects' ::result_type

This commit is contained in:
joaquintides 2020-06-29 11:51:24 +02:00
parent 9d1813aaad
commit b685e11dfc
3 changed files with 6 additions and 4 deletions

View File

@ -618,7 +618,8 @@ public:
end()-make_iterator( end()-make_iterator(
random_access_index_remove<index_node_type>( random_access_index_remove<index_node_type>(
ptrs, ptrs,
::boost::bind(std::equal_to<value_type>(),::boost::arg<1>(),value))); ::boost::bind<bool>(
std::equal_to<value_type>(),::boost::arg<1>(),value)));
while(n--)pop_back(); while(n--)pop_back();
} }

View File

@ -547,7 +547,8 @@ public:
{ {
sequenced_index_remove( sequenced_index_remove(
*this, *this,
::boost::bind(std::equal_to<value_type>(),::boost::arg<1>(),value)); ::boost::bind<bool>(
std::equal_to<value_type>(),::boost::arg<1>(),value));
} }
template<typename Predicate> template<typename Predicate>

View File

@ -39,10 +39,10 @@ typedef int_set::iterator int_set_iterator;
#define CHECK_VOID_RANGE(p) BOOST_TEST((p).first==(p).second) #define CHECK_VOID_RANGE(p) BOOST_TEST((p).first==(p).second)
#undef BIND1ST #undef BIND1ST
#define BIND1ST(f,x) ::boost::bind(f,x,::boost::arg<1>()) #define BIND1ST(f,x) ::boost::bind<bool>(f,x,::boost::arg<1>())
#undef BIND2ND #undef BIND2ND
#define BIND2ND(f,x) ::boost::bind(f,::boost::arg<1>(),x) #define BIND2ND(f,x) ::boost::bind<bool>(f,::boost::arg<1>(),x)
void test_range() void test_range()
{ {