Boost logo

Boost :

From: Steven Watanabe (steven_at_[hidden])
Date: 2007-01-31 14:11:17


AMDG

"John Maddock" wrote:
> Right: and for some accumulators the addition of two accumulators may not be
> possible at all. But can't we make this a conceptual requirement that if
> you try and combine two accumulator sets, then each accumulator must have a
> "combine" method (otherwise you get a compile time error). The "combine"
> methods for min/max/sum/count etc are all trivial aren't they - and could be
> added fairly easily ? But Eric would know the details :-)
>
> John.
Why not let accumulator_set support a fusion sequence interface?
Then combine/reset could be implemented using fusion::for_each, right?

In Christ,
Steven Watanabe


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