Skip to content

Instantly share code, notes, and snippets.

@ox1111
Last active February 27, 2019 02:29
Show Gist options
  • Save ox1111/e42cd0a4c3f88b781110e186934dca4b to your computer and use it in GitHub Desktop.
Save ox1111/e42cd0a4c3f88b781110e186934dca4b to your computer and use it in GitHub Desktop.
//
// 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