mirror of
https://github.com/changkun/modern-cpp-tutorial.git
synced 2025-12-17 04:34:40 +03:00
book: fix an inconsistency between en-us and zh-cn
This commit is contained in:
@@ -105,7 +105,9 @@ The type of the captured variable being declared is judged according to the expr
|
||||
and the judgment is the same as using `auto`:
|
||||
|
||||
```cpp
|
||||
#include <memory>
|
||||
#include <iostream>
|
||||
#include <memory> // std::make_unique
|
||||
#include <utility> // std::move
|
||||
|
||||
void lambda_expression_capture() {
|
||||
auto important = std::make_unique<int>(1);
|
||||
|
||||
Reference in New Issue
Block a user