cplusplus / cplusplus/draft

[dcl.constexpr] awkward grammar in resolution of CWG2602

Open
#6,113 0 comments 0 reactions 0 assignees View on GitHub

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 function either 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 function it is not a constructor or destructor, its of a class does not have any with virtual base classes.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.