Boost logo

Boost Users :

Subject: Re: [Boost-users] [phoenix] accumulate with data member binding
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-10-31 21:17:00


AMDG

Christian Henning wrote:
> bind( &point::_prob, arg1 )
>

std::accumulate takes a binary function object. Try:

arg1 + bind(&point::_prob, arg2)

In Christ,
Steven Watanabe


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