Boost logo

Boost Users :

Subject: Re: [Boost-users] bind with weak_ptr
From: Igor R (boost.lists_at_[hidden])
Date: 2011-10-10 14:30:18


> I believe it's just not too generic. Note that it "does nothing" and
> returns a default-constructed result type, when the weak_ptr expires.
> It may be appropriate for your specific case, but it's definitely not generic.

...but it could be made better and more consistent with weak_ptr
behavior, if instead of "doing nothing" it would throw
boost::bad_weak_ptr.


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