
2 Oct
2007
2 Oct
'07
3:49 a.m.
Hello, Is there a way to automatically have a slot disconnected after it has been called once, without managing the connection manually? void f() { } signal<void()> sig; sig.connect(&f); sig(); // f gets called sig(); // f shouldn't get called