From: Willem Jan Withagen Date: Wed, 29 Jul 2020 12:01:10 +0000 (+0000) Subject: test: fix ambiguous reference to _1 X-Git-Tag: v16.1.0~1571^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F36344%2Fhead;p=ceph.git 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 --- diff --git a/src/test/librados_test_stub/TestRadosClient.cc b/src/test/librados_test_stub/TestRadosClient.cc index c426f2fcf4d6..768715483283 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; }