Subject: [Boost-users] [accumulators] chaining accumulator outputs
From: Allen Chuang (achuang_at_[hidden])
Date: 2010-08-24 00:05:37


Is there a way to chain the output of an accumulator and use it as the input of another accumulator?

The sort of case I am thinking about is for example calculating the max of a rolling_mean. One obvious way to do this is to write a new rolling_mean_max accumulator and make it depend on rolling_mean, but the inner logic would be 99% duplicate of max. I was wondering if there was a way to do this without so much code duplication.

-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01