book: rephrease unique_ptr value capturing (#182)

This commit is contained in:
Dw9
2021-04-13 15:36:31 +08:00
committed by GitHub
parent 5e2531058c
commit ad4b9580a5
2 changed files with 2 additions and 3 deletions

View File

@@ -114,7 +114,7 @@ void lambda_expression_capture() {
}
```
In the above code, `important` is an exclusive pointer that cannot be caught.
In the above code, `important` is an exclusive pointer that cannot be caught by value capture using `=`.
At this time we need to transfer it to the rvalue and
initialize it in the expression.