On Tue, May 21, 2013 at 4:38 PM, Eric Niebler
On 13-05-20 11:29 AM, Michael Powell wrote:
Hello,
We've got a complex domain model which must be accumulated and eventually averaged together. I am already overloading the operators for that model.
We could roll our own with just the operators we'll need to accommodate, like +, +=, /, etc, but would like to take a gander at Boost.Accumulator first. Would be much better, obviously, rather than having to reinvent the wheel.
How doable would it be to accumulate an arbitrarily complex domain model. That's assuming that it is sensible to add, average, and so on, the model, which it is.
What do you mean by "accumulate a domain model"?
Basically, the smallest domain object can be averaged: so a plausible application for accumulator would be to tally (sum up) those instances, followed by a mean average.
-- Eric Niebler Boost.org _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users