cplusplus / cplusplus/draft

[temp.deduct.call] p3 Adding "including" to make the meaning clearer

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

[temp.deduct.call] p3 says

A forwarding reference is an rvalue reference to a cv-unqualified template parameter that does not represent a template parameter of a class template (during class template argument deduction ([over.match.class.deduct])).

The wording in the parenthesis sounds like it is a specific interpretation of what we mean by "represent a template parameter of a class template". However, "represent a template parameter of a class template" should also have its literal meaning.

template<class T>
struct A{
   void foo(T&&){}
};

The case is not about class template argument deduction.

Improvement

A forwarding reference is an rvalue reference to a cv-unqualified template parameter that does not represent a template parameter of a class template (including during class template argument deduction ([over.match.class.deduct])).

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 the wording for [temp.deduct.call] in the TeX draft source and read the surrounding paragraph, including its reference to [over.match.class.deduct]. Update the sentence to include "including" as proposed, then check the generated draft to confirm the wording and cross-reference remain correct.

Written by the indexing model from the issue text.

Assessment

Tech stack
tex
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.