From a26314dfb919d08b8731479d55f95b4dfd217989 Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Thu, 7 Sep 2017 18:51:36 +0300 Subject: [PATCH] Added a check for BOOST_RESULT_OF_USE_DECLTYPE in case if tests are run with forced use of decltype in result_of. --- test/function_input_iterator_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/function_input_iterator_test.cpp b/test/function_input_iterator_test.cpp index db8843b..5443a11 100644 --- a/test/function_input_iterator_test.cpp +++ b/test/function_input_iterator_test.cpp @@ -90,7 +90,7 @@ int main() BOOST_TEST_EQ(generated[i], static_cast(42 + i)); #if !defined(BOOST_NO_CXX11_LAMBDAS) && !defined(BOOST_NO_CXX11_AUTO_DECLARATIONS) \ - && !defined(BOOST_NO_CXX11_DECLTYPE_N3276) + && (!defined(BOOST_NO_CXX11_DECLTYPE_N3276) || defined(BOOST_RESULT_OF_USE_DECLTYPE)) // test the iterator with lambda expressions int num = 42; auto lambda_generator = [&num] { return num++; };