summaryrefslogtreecommitdiff
path: root/libs/config/test/boost_no_cxx11_hdr_future.ipp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/config/test/boost_no_cxx11_hdr_future.ipp')
-rw-r--r--libs/config/test/boost_no_cxx11_hdr_future.ipp35
1 files changed, 35 insertions, 0 deletions
diff --git a/libs/config/test/boost_no_cxx11_hdr_future.ipp b/libs/config/test/boost_no_cxx11_hdr_future.ipp
new file mode 100644
index 0000000000..3913e3c75a
--- /dev/null
+++ b/libs/config/test/boost_no_cxx11_hdr_future.ipp
@@ -0,0 +1,35 @@
+// (C) Copyright Beman Dawes 2009
+
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+
+// See http://www.boost.org/libs/config for more information.
+
+// MACRO: BOOST_NO_CXX11_HDR_FUTURE
+// TITLE: C++0x header <future> unavailable
+// DESCRIPTION: The standard library does not supply C++0x header <future>
+
+#include <future>
+
+namespace boost_no_cxx11_hdr_future {
+
+int test()
+{
+ using std::is_error_code_enum;
+ using std::make_error_code;
+ using std::make_error_condition;
+ using std::future_category;
+ using std::future_error;
+ using std::promise;
+ using std::promise;
+ using std::promise;
+ using std::future;
+ using std::shared_future;
+ using std::atomic_future;
+ using std::packaged_task; // undefined
+ using std::async;
+ return 0;
+}
+
+}