]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/thread/test/sync/futures/when_all/none_pass.cpp
1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // Copyright (C) 2014 Vicente J. Botet Escriba
12 // Distributed under the Boost Software License, Version 1.0. (See accompanying
13 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
15 // <boost/thread/future.hpp>
17 // future<tuple<>> when_all();
19 #include <boost/config.hpp>
21 #if ! defined BOOST_NO_CXX11_DECLTYPE
22 #define BOOST_RESULT_OF_USE_DECLTYPE
26 #define BOOST_THREAD_VERSION 4
28 #include <boost/thread/future.hpp>
29 #include <boost/detail/lightweight_test.hpp>
33 #if defined BOOST_THREAD_PROVIDES_FUTURE_WHEN_ALL_WHEN_ANY
36 boost::future
<boost::csbl::tuple
<> > all
= boost::when_all();
37 BOOST_TEST(all
.valid());
38 BOOST_TEST(all
.is_ready());
42 return boost::report_errors();