|
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, Sergey
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