Boost logo

Boost Users :

From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2008-07-22 11:48:54


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 22 July 2008 10:37 am, Igor R wrote:
> 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?).

Yes, you just need to pass a shared_ptr (or weak_ptr) to the slot's track()
function which owns the object (either directly or indirectly).

> Is it planned to be released as a part of 1.36?

No, it's sitting in the review queue until someone volunteers to be review
manager, although Doug Gregor suggested it should only need a mini-review.
There will at least need to be some namespace/header location rearrangement.
Plus the postconstructor stuff might get dropped depending on sp_accept_owner
getting into a boost release of shared_ptr.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIhgFm5vihyNWuA4URAhAcAKCLksBuYQpjkDpsF16pe+850ThJUQCeP6HG
vXYJLORLXDAD3OKZolNw3uM=
=YQH3
-----END PGP SIGNATURE-----


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