forked from boostorg/range
Fix deprecated usage of boost/bind.hpp.
boost/bind.hpp emits compiler warnings about deprecation of the header and global _N placeholders. This commit converts usage of this header to boost/bind/bind.hpp and using namespace boost::placeholders. Where boost::bind is not actually used, the includes are removed.
This commit is contained in:
@ -14,7 +14,7 @@
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
||||
#include <boost/assign.hpp>
|
||||
#include <boost/bind.hpp>
|
||||
#include <boost/bind/bind.hpp>
|
||||
#include <algorithm>
|
||||
#include <functional>
|
||||
#include <list>
|
||||
@ -59,6 +59,8 @@ namespace boost
|
||||
template< class Container >
|
||||
void test_remove_if_( const Container& c, int to_remove )
|
||||
{
|
||||
using namespace boost::placeholders;
|
||||
|
||||
test_remove_if_impl(c, boost::bind(std::equal_to<int>(), _1, to_remove));
|
||||
test_remove_if_impl(c, boost::bind(std::not_equal_to<int>(), _1, to_remove));
|
||||
}
|
||||
|
Reference in New Issue
Block a user