$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] Annoying coding
From: Robert Jones (robertgbjones_at_[hidden])
Date: 2009-01-20 10:36:18
On Tue, Jan 20, 2009 at 3:18 PM, Maxim Koshelev <chuchelo_at_[hidden]> wrote:
> 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
>
>
>
_2 is a reference to A, not a pointer or iterator, so you'd need .* but
there is no
such thing for lambda palceholders 'cos you can't overload it.
Rob.