Created
July 8, 2014 13:14
-
-
Save castaneai/3d671d5fc9263ba9f4d7 to your computer and use it in GitHub Desktop.
typedef std function
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 <iostream> | |
#include <functional> | |
typedef std::function<void()> ThreadFunc; | |
int main(){ | |
ThreadFunc a = []{}; | |
a(); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment