
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday 25 June 2010, liamv7 wrote:
I'm using the signals2 library in the arrangement shown below. Connections are using the scoped_connection class. When I call Disconnect on an instant of X I expect that it won't be referenced anymore (by the signaller object.) But it generally doesn't seem to be the case. For the object "a" it is correctly destructed but "b" isn't destructed until the signaller object is destructed. I am using signals2 correctly?
Disconnect only flags the slot as disconnected, it doesn't immediately destroy the slot object. Slots are cleaned up incrementally during signal invocations and connects. I suppose I should add a FAQ entry about this. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkwkoXEACgkQ5vihyNWuA4Wn9gCg5FWyAVVFTxKV4zEgbl8BWlhi ILsAoIm3PAfLHBCy8F1fTxxnsmJ7wSk3 =u4eE -----END PGP SIGNATURE-----