]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/thread/example/lambda_future.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / thread / example / lambda_future.cpp
index fd15d4484003662eda5d47417611e07a37b30930..a5fec8a1b442e239d51ba0bbf1c7f871422165aa 100644 (file)
 #include <iostream>
 
 #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
+#endif
 
 int main()
 {
@@ -68,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;