Boost logo

Boost :

From: Johan Torp (johan.torp_at_[hidden])
Date: 2008-05-16 13:01:25


Frank Mori Hess wrote:
>
> Can you come up with any specific examples of how implicitly constructing
> a
> ready future from a value would be dangerous? It's not like implicity
> constructing a shared_ptr from a raw pointer, which might cause the raw
> pointer to be accidentally deleted.
>

I haven't thought of any examples. I was just wondering how much you rely on
in it and how useful it is.

Frank Mori Hess wrote:
>
> It's certainly less dangerous than going
> the other direction (which has generated some controversy): implicit
> conversion of a future to a value, which can block.
>

Agreed.

Johan

-- 
View this message in context: http://www.nabble.com/-future--direct-construct-from-value-tp17253307p17279615.html
Sent from the Boost - Dev mailing list archive at Nabble.com.

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk