Boost logo

Boost Users :

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)...).


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