Skip to content

Conversation

@jyj407
Copy link
Contributor

@jyj407 jyj407 commented Jun 22, 2018

To make it easier for the readers to understand the difference
between lambda capture by value and by reference.

jyj407 and others added 2 commits June 12, 2018 14:17
The header <tuple> is missing. After adding it, it compiles fine with clang in c++17 mode.
To make it eaiser for the readers to understand the difference between lambda capture by value and by reference.
@changkun changkun merged commit a548ea7 into changkun:master Jun 23, 2018
HarrisonDing pushed a commit to HarrisonDing/modern-cpp-tutorial that referenced this pull request Feb 8, 2020
changkun#36) * Fix compilation error for structured binding The header <tuple> is missing. After adding it, it compiles fine with clang in c++17 mode. * Print out the stored_value1 and stored_value2 for the lambda example. To make it eaiser for the readers to understand the difference between lambda capture by value and by reference.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants