]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/thread/test/test_10340.cpp
1 // Copyright (C) 2014 Vicente Botet
3 // Distributed under the Boost Software License, Version 1.0. (See accompanying
4 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 #define BOOST_THREAD_VERSION 4
8 #include <boost/thread/future.hpp>
18 boost::promise
<foo
> p
;
22 // Clearly a const future ref isn't much use, but I needed to
23 // prove the problem wasn't me trying to copy a unique_future
25 const boost::future
<foo
>& fut
= boost::make_ready_future( foo(42) );