Boost logo

Boost :

From: John Maddock (john_at_[hidden])
Date: 2007-01-31 04:15:46


Eric Niebler wrote:
> Would you like to be able to reset an accumulator, or the whole set?
> Nothing stops you from writing an accumulator with a reset() member
> function. You can use accumulator_set::extract() to fetch the
> accumulator corresponding to a certain feature and then call reset()
> on it.
>
> It might be nice to have an accumulator_set::reset() member function
> that resets all the accumulators in order. But what should happen to
> accumulators that don't define a reset() function? Destroy and
> reconstruct them in-place? That could be trouble. Skipping them would
> be trouble, too.

I was thinking of the whole set yes, but I also see how this could be
problemetic :-(

Thanks for the responses, John.


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