From: Willem Jan Withagen Date: Wed, 29 Jul 2020 12:01:10 +0000 (+0000) Subject: test: fix ambiguous reference to _1 X-Git-Tag: wip-pdonnell-testing-20200918.022351~508^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=c141c3a0aa4a06899c4c949e3f7e5c3a1abe4e98;p=ceph-ci.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 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; }