|
Boost : |
From: Steven Watanabe (steven_at_[hidden])
Date: 2006-11-29 12:57:23
AMDG
"Rodolfo Lima" <rodolfo_at_[hidden]> wrote:
>
> Hi, I'm trying to use boost::function with a functor defined with
> boost::lambda that uses a dereference to a pointer to member function,
> without success. Here goes what I've done up to now:
>
<snip>
> // This should compile, but doesn't
> boost::function<int(const aux &)> fm1 = (&protect(_1)->*&aux::a)(x);
>
try boost::lambda::bind(&aux::a, _1, x);
In Christ,
Steven Watanabe
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk