Skip to content

Instantly share code, notes, and snippets.

@lancetw
Created December 24, 2015 02:57
Show Gist options
  • Save lancetw/3bc2c603f49590cf7ad7 to your computer and use it in GitHub Desktop.
Save lancetw/3bc2c603f49590cf7ad7 to your computer and use it in GitHub Desktop.
#include <iostream>
/* C++ 14 */
int main(void) {
auto add = [](auto x, auto y) {return x + y;};
printf("%d", add(1,2));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment