Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2005-08-16 08:23:19


Thorsten Schuett <schuett_at_[hidden]> writes:

> Hartmut and I wrote a small library which implements futures for C++. I
> uploaded the code to the boost-sandbox vault. If you find anything odd in
> there (like e.g. overloading operator T()), you have to blame me, if you find
> interesting stuff in there, you have to blame Hartmut.
>
> The most basic future is simple_future<T>. Its constructor takes a function
> which returns T and spawns a new thread executing this function. Afterwards
> you can call operator()() to block until the thread is done and get the
> result.

<snip>

You asked for comments, so here goes: I find the apparently copious
use of implicit conversions disturbing. Especially disturbing is the
fact that futures seem to have both incoming and outgoing implicit
conversions.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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