
20 Jan
2009
20 Jan
'09
3:18 p.m.
oh, thanks, but according this: http://www.boost.org/doc/libs/1_37_0/doc/html/lambda/le_in_details.html#lamb... I can write... (_2 ->* &A::a) instead of ... bind(&A::a, _2) but it does'nt work
Yeah, sorry, missed the initial value!
std::accumulate( begin, end, 0, _1 + bind(&A::a, _2 ));