Boost logo

Boost Users :

From: Igor R (boost.lists_at_[hidden])
Date: 2008-07-22 10:37:59


Oh, I see that thread_safe_signals already does what I need - one can
safely bind a regular pointer instead of shared_ptr (by the way, is it
safe to do this if the object already inherits from
enable_shared_from_this?).
Is it planned to be released as a part of 1.36?

> o1->someSignal_->connect(bind(&Class2::responder, o2)); // besides, o2
> has a shared_ptr to o1
>
> I'd like this signal-slot to be "weak", i.e. instead of
> "bind(&Class2::responder, o2)" I wish it could be
> "bind(&Class2::responder, weak_ptr(o2))" - which is illegal.


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