I use Poco Events a lot but always miss a feature where i can declare a void event with a listener with no arguments, such as:
- Code: Select all
class Notifier{
public:
Poco::BasicEvent<void> event;
void someMethod(){
event.notify();
}
}
class Listener{
public:
Notifier notifier;
void setup(){
notifier.event += Poco::delegate(this,&Listener::listenerMethod);
}
void listenerMethod(){
// do something
}
}
Here's a patch that adds the posibility for such an event, let me know if this is of any interest, i'm one of the developers of the open source tool openFrameworks: http://openframeworks.cc and several people in our community have expressed interest for such a feature so would be good to know if this has any posibility of being accepted before patching our own code
thanks!





