|
Boost Users : |
Subject: Re: [Boost-users] [lambda] newbie: lambda to help in std::accumulate
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-01-29 11:45:19
AMDG
MichaÅ Nowotka wrote:
> Ok, i now I've corrected my method to:
>
> double evaluate(const vector<double>& win_probabls)
> {
> return accumulate (win_probabls.begin(), win_probabls.end(), 0,
> lambda::_1 + lambda::bind(log, lambda::_2) );
> }
>
> and got following warning (which i can't understand):
>
> c:\program files\boost\boost_1_36_0\boost\lambda\detail\lambda_traits.hpp(389)
> : warning C4180: qualifier applied to function type has no meaning;
>
>
> what I'm doing wrong
You're not doing anything wrong. Lambda has never really been
warning-proofed for msvc.
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