Skip to content

Print out the stored_value1 and stored_value2 for the lambda example. #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 23, 2018

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants