Boost logo

Boost :

From: Steven Watanabe (steven_at_[hidden])
Date: 2006-11-29 12:57:23


"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:
> // 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, gregod at, cpdaniel at, john at