[expr.prim.lambda.capture]/12 Lengthy but redundant wording
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 85/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- cpp
- Domain
- documentation
Research direction
Review [expr.prim.lambda.capture] paragraphs 8, 12, and 17 in the draft source, comparing the repeated wording with the definition of “captured.” Remove the redundant “implicitly or explicitly” phrasing where appropriate, and confirm the resulting text preserves the intended meaning in both the normative statement and the note.
Written by the indexing model from the issue text.
Description
[expr.prim.lambda.capture]/12 says
An entity is captured by reference if it is implicitly or explicitly captured but not captured by copy.
However, [expr.prim.lambda.capture]/8 says
An entity is captured if it is captured explicitly or implicitly.
So it's enough to say
An entity is captured by reference if it is
implicitly or explicitlycaptured but not captured by copy.
Similarly [expr.prim.lambda.capture]/17
[Note 10: If a non-reference entity is
implicitly or explicitlycaptured by reference, invoking the function call operator of the corresponding lambda-expression after the lifetime of the entity has ended is likely to result in undefined behavior. — end note]
Or is it intentional to use a verbose tone to remind readers?
- Dominant language
- TeX
- Stars
- 221
- Forks
- 813
- Avg merge
- 17h 45m
- Merged PRs (30d)
- 34
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cplusplus/draft
-
P2-Bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
P2-Bug
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 95/100
Git-it-App/git-it-electron#1047 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
neondatabase/website#5944 ·
-
📕documentation
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
db-ux-design-system/core-web#8239 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
libsdl-org/sdlwiki#1008 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100