Skip to content

Instantly share code, notes, and snippets.

@WideWord
Created November 20, 2012 12:44
Show Gist options
  • Select an option

  • Save WideWord/4117711 to your computer and use it in GitHub Desktop.

Select an option

Save WideWord/4117711 to your computer and use it in GitHub Desktop.
#include "utils/event.h"
#include <iostream>
void cb (int i, bool s) {
if(s)std::cout << i;
}
int main () {
Event<int, bool> evt;
evt += cb;
evt.call(4, true);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment