Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active October 10, 2017 11:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deque-blog/0ff70e60ce3ab48e729a96855d3b956c to your computer and use it in GitHub Desktop.
Save deque-blog/0ff70e60ce3ab48e729a96855d3b956c to your computer and use it in GitHub Desktop.
std::vector<int> ints = {1, 2, 3};
for_each(ints.begin(), ints.end(), [](int i) { // Does not compile
std::cout << i << '\n';
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment