1 //===----------------------------------------------------------------------===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is dual licensed under the MIT and the University of Illinois Open 6 // Source Licenses. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 10 // Copyright (C) 2014 Vicente J. Botet Escriba 11 // 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) 14 15 // <boost/thread/future.hpp> 16 17 // future<tuple<>> when_any(); 18 19 #include <boost/config.hpp> 20 21 #if ! defined BOOST_NO_CXX11_DECLTYPE 22 #define BOOST_RESULT_OF_USE_DECLTYPE 23 #endif 24 25 26 #define BOOST_THREAD_VERSION 4 27 28 #include <boost/thread/future.hpp> 29 #include <boost/detail/lightweight_test.hpp> 30 main()31int main() 32 { 33 #if defined BOOST_THREAD_PROVIDES_FUTURE_WHEN_ALL_WHEN_ANY 34 35 { 36 boost::future<boost::csbl::tuple<> > all = boost::when_any(); 37 BOOST_TEST(all.valid()); 38 BOOST_TEST(all.is_ready()); 39 } 40 #endif 41 42 return boost::report_errors(); 43 } 44 45