Boost logo

Boost Users :

From: Jaakko Järvi (jarvi_at_[hidden])
Date: 2006-11-29 22:55:06


Can you post a full example (with main, includes and all)?

   Jaakko

On Nov 27, 2006, at 9:41 PM, Haroon Khan wrote:

> 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 mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


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