Skip to content

Commit a96b87e

Browse files
committed
Merge branch 'develop' of https://github.com/Jac1494/lambda into feature/pr-17
2 parents bbbe1a9 + 641dd2b commit a96b87e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: test/result_of_tests.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,8 @@ int test_main(int, char *[]) {
300300

301301
// Check using result_of with lambda functors
302302
BOOST_CHECK(apply0(constant(0)) == 0);
303-
BOOST_CHECK(apply1<int>(_1, one) == 1);
303+
// returns local address and leads to undefined behavior
304+
//~ BOOST_CHECK(apply1<int>(_1, one) == 1);
304305
BOOST_CHECK(apply1<int&>(_1, one) == 1);
305306
BOOST_CHECK(apply1<const int&>(_1, one) == 1);
306307
BOOST_CHECK((apply2<int, int>(_1 + _2, one, two) == 3));

0 commit comments

Comments
 (0)