mirror of
https://github.com/boostorg/lambda2.git
synced 2025-05-10 09:43:52 +00:00
Work around libc++ issue (again.)
This commit is contained in:
parent
7c39436198
commit
0572e42219
@ -64,6 +64,13 @@ int main()
|
|||||||
BOOST_TEST_EQ( (_1->*&std::pair<int, int>::first)( x ), 1 );
|
BOOST_TEST_EQ( (_1->*&std::pair<int, int>::first)( x ), 1 );
|
||||||
BOOST_TEST_EQ( (_1->*&std::pair<int, int>::second)( x ), 2 );
|
BOOST_TEST_EQ( (_1->*&std::pair<int, int>::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->*first)( x ), 1 );
|
||||||
BOOST_TEST_EQ( (_1->*second)( x ), 2 );
|
BOOST_TEST_EQ( (_1->*second)( x ), 2 );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user