Skip to content

Instantly share code, notes, and snippets.

@looopTools
Created June 5, 2017 12:36
Show Gist options
  • Save looopTools/02d4d91fb5cda6f39c1c199ac6ddacde to your computer and use it in GitHub Desktop.
Save looopTools/02d4d91fb5cda6f39c1c199ac6ddacde to your computer and use it in GitHub Desktop.
// 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