From c141c3a0aa4a06899c4c949e3f7e5c3a1abe4e98 Mon Sep 17 00:00:00 2001 From: Willem Jan Withagen Date: Wed, 29 Jul 2020 12:01:10 +0000 Subject: [PATCH] test: fix ambiguous reference to _1 FreeBSD/Clang/lib complains: /home/jenkins/workspace/ceph-master/src/test/librados_test_stub/TestRadosClient.cc:295:55: error: reference to '_1' is ambiguous &TestRadosClient::finish_aio_completion, this, c, _1)); ^ /usr/local/include/boost/bind/placeholders.hpp:46:38: note: candidate found by name lookup is 'boost::placeholders::_1' BOOST_STATIC_CONSTEXPR boost::arg<1> _1; ^ /usr/include/c++/v1/functional:2448:46: note: candidate found by name lookup is 'std::__1::placeholders::_1' /* _LIBCPP_INLINE_VAR */ constexpr __ph<1> _1{}; Signed-off-by: Willem Jan Withagen --- src/test/librados_test_stub/TestRadosClient.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/librados_test_stub/TestRadosClient.cc b/src/test/librados_test_stub/TestRadosClient.cc index c426f2fcf4d..76871548328 100644 --- a/src/test/librados_test_stub/TestRadosClient.cc +++ b/src/test/librados_test_stub/TestRadosClient.cc @@ -292,7 +292,7 @@ void TestRadosClient::flush_aio_operations(AioCompletionImpl *c) { int TestRadosClient::aio_watch_flush(AioCompletionImpl *c) { c->get(); Context *ctx = new LambdaContext(std::bind( - &TestRadosClient::finish_aio_completion, this, c, _1)); + &TestRadosClient::finish_aio_completion, this, c, std::placeholders::_1)); get_watch_notify()->aio_flush(this, ctx); return 0; } -- 2.39.5