Skip to content

Instantly share code, notes, and snippets.

@mobius
Created January 31, 2013 00:58
Show Gist options
  • Save mobius/4678910 to your computer and use it in GitHub Desktop.
Save mobius/4678910 to your computer and use it in GitHub Desktop.
fast test for lambda function
#include <stdio.h>
#include <functional>
void foo( int i )
{
auto f = [=]() { printf("%d\n", i); };
f();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment