Boost logo

Boost :

From: Hartmut Kaiser (hartmut.kaiser_at_[hidden])
Date: 2005-08-16 16:04:34

David Abrahams wrote:

> > 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.

In direct discussions with Thorsten I strongly objected against having an
operator T(), he want's to see the commenst on this list anyway...

Related your mentioning of incoming implicit conversions: where do you think
these may take place? Do I miss something?

Regards Hartmut

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