Subject: Re: [Boost-users] Boost.Accumulators: how to use with objectdatamembers?
From: er (erwann.rogard_at_[hidden])
Date: 2009-04-12 14:27:06


Especially, why does it work without the assignment which is
> the example from the docs?

The example from the docs is

acc = std::for_each( data.begin(), data.end(), acc );

In your case the function object is not acc but
bind<void>(...ref(acc)...).