Boost logo

Boost :

Subject: Re: [boost] [optional][thread] Returning a future in an optional fails
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2013-06-14 16:12:03

On Friday 14 June 2013 21:24:32 Klaim - Joël Lamotte wrote:
> I just hit this using VS2012/boost 1.54 beta.
> I also tried with gcc4.8 (but I don't
> know the boost version)
> and got a similar error.
> I first hit this with boost::future but it don't seem to be the problem as
> it generate the same error.
> My question is: does std/boost::future don't match the requirements to be
> an optional value?
> Or is this an error I should log?

I think the problem is that future is not copyable (only movable) and
boost::optional doesn't support move yet. I think I read in this list that
some work is going in this direction, but I don't know the details.

Boost list run by bdawes at, gregod at, cpdaniel at, john at