
28 Nov
2006
28 Nov
'06
3:41 a.m.
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