diff --git a/test/test_fast_extension.cpp b/test/test_fast_extension.cpp index 069888f47..f418a6b60 100644 --- a/test/test_fast_extension.cpp +++ b/test/test_fast_extension.cpp @@ -184,7 +184,7 @@ void test_reject_fast() allowed_fast.push_back(3); std::for_each(allowed_fast.begin(), allowed_fast.end() - , bind(&send_allow_fast, boost::ref(s), _1)); + , boost::bind(&send_allow_fast, boost::ref(s), _1)); while (!allowed_fast.empty()) { @@ -245,7 +245,7 @@ void test_respect_suggest() suggested.push_back(3); std::for_each(suggested.begin(), suggested.end() - , bind(&send_suggest_piece, boost::ref(s), _1)); + , boost::bind(&send_suggest_piece, boost::ref(s), _1)); send_unchoke(s); diff --git a/test/test_primitives.cpp b/test/test_primitives.cpp index 8866bc223..fe8b0f5ad 100644 --- a/test/test_primitives.cpp +++ b/test/test_primitives.cpp @@ -59,7 +59,6 @@ POSSIBILITY OF SUCH DAMAGE. using namespace libtorrent; using namespace boost::tuples; -using boost::bind; namespace libtorrent { TORRENT_EXPORT std::string sanitize_path(std::string const& p); @@ -935,7 +934,7 @@ int test_main() char xml1[] = "foobar"; std::string out1; - xml_parse(xml1, xml1 + sizeof(xml1) - 1, bind(&parser_callback + xml_parse(xml1, xml1 + sizeof(xml1) - 1, boost::bind(&parser_callback , boost::ref(out1), _1, _2, _3)); std::cerr << out1 << std::endl; TEST_CHECK(out1 == "BaSfooEbSbarFa"); @@ -943,7 +942,7 @@ int test_main() char xml2[] = ""; std::string out2; - xml_parse(xml2, xml2 + sizeof(xml2) - 1, bind(&parser_callback + xml_parse(xml2, xml2 + sizeof(xml2) - 1, boost::bind(&parser_callback , boost::ref(out2), _1, _2, _3)); std::cerr << out2 << std::endl; TEST_CHECK(out2 == "DxmlAversionV1.0EcAxV1AyV3BdAfooVbarFdAbooVfooCcomment"); @@ -951,7 +950,7 @@ int test_main() char xml3[] = "foo