Boost Users :
Subject: Re: [Boost-users] "weak" binding to member?
From: John M. Dlugosz (mpbecey7gu_at_[hidden])
Date: 2011-09-12 13:02:07
On 9/12/2011 1:18 AM, Igor R wrote:
>> I know that 'bind' (now in std::tr1) will bind pointers to member functions
>> to smart pointers. But is there a simple way to bind to a "weak" pointer,
>> such that the attempted call will realize the smart pointer and if
>> successful perform the call, or if unsuccessful just not call anything
>> without complaint? (In this case, it appears that the return is void)
> Not sure you can do this directly, but you can use weak_ptr as a
> tracking object for the caller that attempts to invoke your binder.
I don't know what you mean by that.
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