I would like a test case for this, so we can show that it works and that it keeps working.
> Package: libsigc++-2.0 > Severity: normal > Tags: patch > > sigc::slot can be used as a function pointer with the advantage of being > able to add function arguments with sigc::bind, etc. However, > disconnecting such slots does not work, because it doesn't do anything > if there is no parent to notify. > > In my programs it is quite usual that there isn't a parent, because I > know what happens to the slot, so I don't need a notification. However, > I still need to invalidate the slot sometimes, and even > slot = sigc::slot0 <void> (); > doesn't work, because that simply calls disconnect (). > > The attached patch invalidates the slot on disconnect, even if there is > no parent. > > -- System Information: > Debian Release: testing/unstable > APT prefers unstable > APT policy: (500, 'unstable') > Architecture: i386 (i686) > Shell: /bin/sh linked to /bin/bash > Kernel: Linux 2.6.11 > Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) > Murray Cumming [EMAIL PROTECTED] www.murrayc.com www.openismus.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

