From d5da7a4dda42a1d9124eb6518976cd18c77a9fcd Mon Sep 17 00:00:00 2001 From: "Vicente J. Botet Escriba" Date: Sat, 30 Sep 2017 10:03:17 +0200 Subject: [PATCH] disable ex_lambda_future test for msvc-11.0 and add a warning to signal this doesn't work. --- example/lambda_future.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/example/lambda_future.cpp b/example/lambda_future.cpp index 8d75e16d..0a98be02 100644 --- a/example/lambda_future.cpp +++ b/example/lambda_future.cpp @@ -20,7 +20,7 @@ #include #if defined BOOST_THREAD_PROVIDES_FUTURE_CONTINUATION \ - && ! defined BOOST_NO_CXX11_LAMBDAS && ! (defined BOOST_MSVC && _MSC_VER < 1700) + && ! defined BOOST_NO_CXX11_LAMBDAS && ! (defined BOOST_MSVC && _MSC_VER < 1800) // works since msvc-12.0 #ifdef BOOST_MSVC #pragma warning(disable: 4127) // conditional expression is constant @@ -71,6 +71,8 @@ int main() } #else +#warning "This test is not supported in this configuration, either because Bosst.Thread has been configured to don't support continuations, the compiler doesn't provides lambdas or because they are buggy as for MSV versions < msvc-12.0" + int main() { return 0;