[sigc] debian bug #326221 -- Unable to disconnect parentless slots???

Was this bug ever resolved?


I've been trying to declare a slot within a class definition and use 
the disconnect() and block() functions.  They do not prevent signals 
from calling the associated callback function.  However, calling 
my_slot(i) directly is blocked.

For example...

class foo : public sigc::trackable
		foo() {
			my_slot = sigc::mem_fun(this, &foo::fun);
		~foo() {

		sigc::slot<void, int> my_slot;

		void fun(int i) {
			std::cout << "i = " << i << '\n';

Is there a better way to accomplish the same concept?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]