Re: [boost] howto: boost.lambda + stl on VS 2010 (SP1) ?

5 May
2011
5 May
'11
12:27 a.m.
Raffi Enficiaud wrote:
To this point, I thought that using accumulate would be cleaner: std::accumulate(m.begin(), m.end(), double(0), & _1->*&aa::second);
std::accumulate takes a binary function. It doesn't do s += f(*i) as you seem to think, it does s = f(s, *i). So you should probably pass _1 + &_2->*&aa::second to it.
5152
Age (days ago)
5152
Last active (days ago)
0 comments
1 participants
participants (1)
-
Peter Dimov