Boost logo

Boost Users :

Subject: Re: [Boost-users] Annoying coding
From: Maxim Koshelev (chuchelo_at_[hidden])
Date: 2009-01-20 10:18:37


oh, thanks, but according this:

http://www.boost.org/doc/libs/1_37_0/doc/html/lambda/le_in_details.html#lambda.member_pointer_operator

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 ));


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