Created
July 20, 2011 19:07
-
-
Save r2p2/1095666 to your computer and use it in GitHub Desktop.
hm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <utils/event/signal.h> | |
#include <iostream> | |
class MySlot | |
{ | |
public: | |
void slot() | |
{ | |
std::cout << "foo" << std::endl; | |
} | |
}; | |
int main() | |
{ | |
utils::event::Signal<> s; | |
{ | |
MySlot slot; | |
s.register_callback(slot, &MySlot::slot); | |
} | |
s.emit_signal(); | |
return 0; | |
} | |
~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment