Add more feature checks; lambda test needs decltype-based result_of.

This commit is contained in:
morinmorin
2017-09-07 20:14:39 +09:00
parent c1a375284d
commit 7ce9f87954

View File

@ -90,7 +90,8 @@ int main()
for(std::size_t i = 0; i != 10; ++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)
// test the iterator with lambda expressions
int num = 42;
auto lambda_generator = [&num] { return num++; };