From 641dd2b0a6dc0e08b3dfd3edc8bcda127cda6a54 Mon Sep 17 00:00:00 2001 From: Jaydeep Chauhan Date: Thu, 25 Jul 2019 18:19:15 +0530 Subject: [PATCH] Disabled one test which returns local address --- test/result_of_tests.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/result_of_tests.cpp b/test/result_of_tests.cpp index c8da329..d97f00e 100644 --- a/test/result_of_tests.cpp +++ b/test/result_of_tests.cpp @@ -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(_1, one) == 1); + // returns local address and leads to undefined behavior + //~ BOOST_CHECK(apply1(_1, one) == 1); BOOST_CHECK(apply1(_1, one) == 1); BOOST_CHECK(apply1(_1, one) == 1); BOOST_CHECK((apply2(_1 + _2, one, two) == 3));