book: avoid "let the compiler deduce the list by itself" #277
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
resolve #276
Description
The standard fully specifies which entites are implicitly captured. So it could be misleading if we say "let the compiler deduce the list", which possibly implies that compilers has additional freedom.
Change List
Reference
C++ standard working draft, [expr.prim.lambda.capture]
说明
标准完全指定哪些实体需要被捕获。从而如果我们说“让编译器自行推导列表”可能造成误导,因为这可能暗示编译器有额外的自由。
变化箱单
参考文献
C++ 标准工作草案, [expr.prim.lambda.capture]