mirror of
https://github.com/boostorg/lambda.git
synced 2026-01-19 04:12:15 +00:00
Merge branch 'develop' of https://github.com/Jac1494/lambda into feature/pr-17
This commit is contained in:
@@ -300,7 +300,8 @@ int test_main(int, char *[]) {
|
||||
|
||||
// Check using result_of with lambda functors
|
||||
BOOST_CHECK(apply0(constant(0)) == 0);
|
||||
BOOST_CHECK(apply1<int>(_1, one) == 1);
|
||||
// returns local address and leads to undefined behavior
|
||||
//~ BOOST_CHECK(apply1<int>(_1, one) == 1);
|
||||
BOOST_CHECK(apply1<int&>(_1, one) == 1);
|
||||
BOOST_CHECK(apply1<const int&>(_1, one) == 1);
|
||||
BOOST_CHECK((apply2<int, int>(_1 + _2, one, two) == 3));
|
||||
|
||||
Reference in New Issue
Block a user