Created
April 22, 2016 19:54
-
-
Save Azhng/5e823088aa74c4f440a48ada85812cbe to your computer and use it in GitHub Desktop.
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 "IPluggable.hpp" | |
#include<cstdio> | |
#define quote(x) #x | |
using namespace std; | |
int main(int argc, char **argv) { | |
cout << "Why not working" << endl; | |
Engine e; | |
Engine e2; | |
e.func1(e2) | |
.func2() | |
.func3() | |
.on("ahah", [](Engine& e) { | |
cout << "handling" << endl; | |
}) | |
.beNotified("ahah") | |
.func2(); | |
int fooo; | |
cin >> fooo; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment