$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] Problem with 'future' on compiler without move semantics
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2012-04-12 20:38:33
Le 13/04/12 01:26, John M. Dlugosz a écrit :
> In my earlier note, I figured it should just work. But it's not.
> I think it might be different on Boost 1.47?
>
>
> Can anyone give me a VERY QUICK answer on how to return a
> unique_future on a compiler without && using Boost 1.47?
Can you try an undocumented function
operator boost::detail::thread_move_t<unique_future>()
{
return boost::detail::thread_move_t<unique_future>(*this);
}
unique_future<int> bar() { return
boost::detail::thread_move_t<unique_future<int>>(foo())); }
Please don't forget to post the exact example, the boost version, the
compiler, ...
HTH,
Vicente