
25 Jan
2009
25 Jan
'09
1:20 p.m.
I want to compute sum of logarithms so i wrote: #include <cmath> double evaluate(const vector<double>& win_probabls) { return accumulate (win_probabls.begin(), win_probabls.end(), 0, lambda::_1 + log(lambda::_2) ); } but this code doesn't compile. Does anyone know why? -- Michał Nowotka