Last active
February 27, 2019 02:29
-
-
Save ox1111/e42cd0a4c3f88b781110e186934dca4b 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
// | |
// https://wandbox.org/permlink/3bwgkuIXyb83E0rK | |
// | |
// $ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.63.0/gcc-7.3.0/include -std=gnu++17 | |
// | |
#include <iostream> | |
#include <algorithm> | |
#include <vector> | |
int main() { | |
auto helloworld = [](int a) mutable { std::cout << ++a; }; | |
helloworld(100); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment