Boost logo

Boost Users :

From: Haroon Khan (haroon.khan_at_[hidden])
Date: 2006-11-27 22:41:02


Hi,
How can we use the Boost::lambda::bind function to behave the same as
the following

class some_class{
  public:
      some_class& foo(int x){....}
      void bar() {...}
}

some_class a_object;
a_object.foo(x).bar(), where the call to some_class::foo returns a
reference to the object.

I could use Boost.Bind library to accomplish the above as follows
boost::bind(&some_class::bar, boost::bind(&some_class::foo, some_functor(), _1))

and I need to do this using boost.lambda.

Thanks, Haroon


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