|
Boost Users : |
From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2008-06-25 16:41:54
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wednesday 25 June 2008 16:25 pm, gast128 wrote:
> posts where about the need for calling the parent during destruction. Well
> there is one major case: if a parent is the observer of its child, the
> destructor of the child is the ideal candidate for unregistering. But in
> above case it leads to crashes. Although in this case the parent gets
> destroyed (in which the unregistering at the parent may be superfluous)
> there may be other observers for the child.
Signals/slots libraries (e.g. boost.signals) typically support automatic
disconnection when either the observer or observed are destroyed.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFIYq2W5vihyNWuA4URAtbIAJ4nyd7VO4yGkSJ45iKoPGfWjDTNmwCeJOxW
CzYqo+6sX1FNHj88Repz/iE=
=RDl7
-----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