cplusplus / cplusplus/draft

[basic.link],[dcl.constexpr] "constexpr variable" is not defined

Open
#6,521 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

[basic.link] p14 refers to "constexpr variable", not constexpr variable, as if it was was a defined term.

I think that defining "constexpr variable" in general would be useful, and would create symmetry with "constexpr function", which is a defined term. However, I'm unsure how exactly to word it.

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

Read [basic.link] paragraph 14 and the related [dcl.constexpr] wording in the draft. Compare how “constexpr function” is defined, then determine wording for a general “constexpr variable” definition and update the references consistently; done means the term is clearly defined and the paragraph no longer uses an undefined term.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
documentation
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.