Boost logo

Boost Users :

From: Vladimir Krasovsky (vkrasovsky_at_[hidden])
Date: 2004-08-02 04:45:24

Hello boost-users_at_[hidden],

It seems to me that currently lambda's bind does not support
shared_ptr as a second argument to bind, when first argument is a
pointer-to-member. But boost::bind handles it perfectly. It would be
nice for me to be able to write something like this:

using namespace boost::lambda;

struct SomeClass
    int member1;

boost::shared_ptr<SomeClass> ptr(new SomeClass);

(bind(&SomeClass::member1, ptr) = _1)(5);

Is it possible with current implementation of lambda? Or I have missed
something important?

Best regards,
 Vladimir                          mailto:vkrasovsky_at_[hidden]

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at