From 0572e42219f46099abe61b4aeb351b1cee02132c Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 18 Oct 2021 21:20:14 +0300 Subject: [PATCH] Work around libc++ issue (again.) --- test/project.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/project.cpp b/test/project.cpp index 45b2073..4971e38 100644 --- a/test/project.cpp +++ b/test/project.cpp @@ -64,6 +64,13 @@ int main() BOOST_TEST_EQ( (_1->*&std::pair::first)( x ), 1 ); BOOST_TEST_EQ( (_1->*&std::pair::second)( x ), 2 ); +#if defined(_LIBCPP_VERSION) + + // https://bugs.llvm.org/show_bug.cgi?id=51753 + using std::placeholders::_1; + +#endif + BOOST_TEST_EQ( (_1->*first)( x ), 1 ); BOOST_TEST_EQ( (_1->*second)( x ), 2 ); }