Added a check for BOOST_RESULT_OF_USE_DECLTYPE in case if tests are run with forced use of decltype in result_of.

This commit is contained in:
Andrey Semashev 2017-09-07 18:51:36 +03:00
parent e61592c553
commit a26314dfb9

View File

@ -90,7 +90,7 @@ int main()
BOOST_TEST_EQ(generated[i], static_cast<int>(42 + i)); BOOST_TEST_EQ(generated[i], static_cast<int>(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) && (!defined(BOOST_NO_CXX11_DECLTYPE_N3276) || defined(BOOST_RESULT_OF_USE_DECLTYPE))
// test the iterator with lambda expressions // test the iterator with lambda expressions
int num = 42; int num = 42;
auto lambda_generator = [&num] { return num++; }; auto lambda_generator = [&num] { return num++; };