Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-08-06 07:59:48

From: "Moore, Dave" <dmoore_at_[hidden]>
> Bill's earlier comments to Eric about constraining R to be
> copy-constructable, etc. would of course still apply.

I think that the implicit requirement that 'R' is a valid function return
value might be enough.

> For thread_groups of these calls, I could envision some algorithm for
> composing/combining the return values.

std::accumulate? Or we can even reuse signal combiners. :-)

> What would we do if some threads
> throw() and some don't? Would partial results be discarded?

Seems logical. If you perform the same computation sequentially and a
"segment" throws, partial results are discarded.

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