|
Boost Users : |
Subject: Re: [Boost-users] [Accumulators] Retract samples
From: Matthias Troyer (troyer_at_[hidden])
Date: 2011-01-06 15:26:33
On Jan 3, 2011, at 11:12 PM, Alex Hagen-Zanker wrote:
>>
> Yes, I think I'll reuse the framework, even though it is much more advanced than my usual standard.
>
> Another feature I will need to add is to accumulate subtotals. Do you know of any issues with that? I'd like to allow the following:
>
> acc a, b, c; // three identical accumulators
> a(1); // 1
> a(2); // 1 + 2
>
> b(3); // 3
> b(4); // 3 + 4
>
> c(a); // 1 + 2
> c(b); // 1 + 2 + 3 + 4 c(5); // 1 + 2 + 3 + 4 + 5
No, this feature of "merging" accumulators has not been implemented but often requested.
Matthias
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net