Last active
October 10, 2017 11:11
-
-
Save deque-blog/0ff70e60ce3ab48e729a96855d3b956c to your computer and use it in GitHub Desktop.
This file contains 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
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