$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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