[dcl.constexpr] awkward grammar in resolution of CWG2602
Nobody has claimed this yet.
- Dominant language
- TeX
- Stars
- 221
- Forks
- 813
- Avg merge
- 16h 4m
- Merged PRs (30d)
- 36
Description
CWG2602 asks for this text in [dcl.constexpr]/3:
A function is constexpr-suitable if:
- it is not a coroutine (9.5.4 [dcl.fct.def.coroutine]), and
- if the function is a constructor or destructor, its class does not have any virtual base classes.
The second bullet does fit well into the enclosing context ("A function is constexpr-suitable if, [...] if the function [...]"). This would be easier to read if rephrased:
A function is constexpr-suitable if:
- it is not a coroutine (9.5.4 [dcl.fct.def.coroutine]), and
if the functioneither it is not a constructor or destructor,or its class does not have any virtual base classes.
or
A function is constexpr-suitable if:
- it is not a coroutine (9.5.4 [dcl.fct.def.coroutine]), and
if the functionit is not a constructor or destructor, itsof a classdoes not have anywith virtual base classes.
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.
Research direction
Locate [dcl.constexpr]/3 in the draft source and review the two proposed rewrites against the surrounding sentence. Choose and apply wording that is grammatically consistent while preserving the intended CWG2602 requirement, then verify the rendered paragraph.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- tex
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100