mirror of
https://github.com/boostorg/lambda2.git
synced 2025-05-11 05:33:57 +00:00
Work around libc++ issue (https://bugs.llvm.org/show_bug.cgi?id=51753)
This commit is contained in:
parent
0c1898100a
commit
d7a1fccc89
@ -42,6 +42,13 @@ int main()
|
||||
BOOST_TEST_EQ( (_1->*&X::f1)( x ), 0 );
|
||||
BOOST_TEST_EQ( (_1->*&X::f2)( x ), 0 );
|
||||
|
||||
#if defined(_LIBCPP_VERSION)
|
||||
|
||||
// https://bugs.llvm.org/show_bug.cgi?id=51753
|
||||
using std::placeholders::_1;
|
||||
|
||||
#endif
|
||||
|
||||
BOOST_TEST_EQ( (_1->*&X::m1 += 1)( x ), 1 );
|
||||
BOOST_TEST_EQ( (_1->*&X::m2 += 2)( x ), 2 );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user