From 7ce9f8795402630dd78ba736efb28d8a485b9da2 Mon Sep 17 00:00:00 2001 From: morinmorin Date: Thu, 7 Sep 2017 20:14:39 +0900 Subject: [PATCH] Add more feature checks; lambda test needs decltype-based result_of. --- test/function_input_iterator_test.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/function_input_iterator_test.cpp b/test/function_input_iterator_test.cpp index 0e3f97f..5c151c4 100644 --- a/test/function_input_iterator_test.cpp +++ b/test/function_input_iterator_test.cpp @@ -90,7 +90,8 @@ int main() for(std::size_t i = 0; i != 10; ++i) BOOST_TEST_EQ(generated[i], static_cast(42 + i)); -#if !defined(BOOST_NO_CXX11_LAMBDAS) && !defined(BOOST_NO_CXX11_AUTO_DECLARATIONS) +#if !defined(BOOST_NO_CXX11_LAMBDAS) && !defined(BOOST_NO_CXX11_AUTO_DECLARATIONS) \ + && !defined(BOOST_NO_CXX11_DECLTYPE_N3276) // test the iterator with lambda expressions int num = 42; auto lambda_generator = [&num] { return num++; };