
31 Jan
2007
31 Jan
'07
9:15 a.m.
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.