Boost logo

Boost Users :

Subject: Re: [Boost-users] unique_future without rvalue references
From: John M. Dlugosz (mpbecey7gu_at_[hidden])
Date: 2012-05-16 13:27:35


On 5/16/2012 3:45 AM, Vicente J. Botet Escriba wrote:
> Le 16/05/12 06:13, John M. Dlugosz a écrit :
>
> If you can not use the trunk,
>
> have you tried with
>
> boost::unique_future<T> f() {
> /// x
> return boost::detail::thread_move_t<T>(x);
> }
>
>
> Best,
> Vicente

Yes, I tried that. I get an error about no viable constructor. I tried the form you show
(prefix operator form) and an explicit operator syntax call.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net