Created
June 5, 2017 12:36
-
-
Save looopTools/02d4d91fb5cda6f39c1c199ac6ddacde to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// Type your code here, or load an example. | |
#include <functional> | |
#include <iostream> | |
template<typename func> | |
void bla(func f) | |
{ | |
f(); | |
} | |
int main() | |
{ | |
std::function<void()> test = [](){std::cout << "bla" << std::endl;}; | |
bla(test); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment