Boost logo

Boost Users :

Subject: Re: [Boost-users] [phoenix] accumulate with data member binding
From: Sergey Sadovnikov (flex_ferrum_at_[hidden])
Date: 2008-11-01 05:52:13

Hello, Christian.

Saturday, November 1, 2008 at 1:15:54 AM you wrote:

CH> Hi there, the following snippet doesn't compile which surprises me a
CH> little. Could somebody tell what's wrong?

Try following:
double sum_prob = std::accumulate( d.begin()
                                 , d.end()
                                 , 0.0
                                 , bind( &point::_prob)(arg1)

Best Regards,

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at