cplusplus / cplusplus/draft

Split [class.temporary]

Open
#8,206 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

P3-Other
Dominant language
TeX
Stars
221
Forks
813
Avg merge
16h 4m
Merged PRs (30d)
36

Description

[class.temporary] talks about two very different kinds of temporaries: the most well-known ones, which are created by temporary materialization, and the much less well-known ones, which are created at the implementation's discretion to store function parameters and return values in registers.

It would be helpful to be able to cross-reference the latter specifically, for example in Example 2 to [dcl.contract.res]. We can't currently do that because we can't cross-reference a particular paragraph within a section.

My suggestion is that we create a new subsection [class.temporary.general] which contains current paragraph 1, followed by [class.temporary.materialization] which contains current paragraph 2, followed by [class.temporary.function] which contains current paragraph 3, and finally [class.temporary.lifetime] which contains all remaining paragraphs.

This is proposed to become part of #7399

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

Start by locating the source for [class.temporary] and read the proposal in #7399 for surrounding context. Split the section into the proposed general, materialization, function, and lifetime subsections, preserving the specified paragraph grouping; done means the relevant paragraphs can be cross-referenced individually.

Written by the indexing model from the issue text.

Assessment

Tech stack
tex
Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.