cplusplus / cplusplus/draft

[temp.deduct.type] p4 values vs parameters

Open
#4,884 5 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

In most cases, the types, templates, and non-type values that are used to compose P participate in template argument deduction.

Isn't that it should be phrased as the following

In most cases, the type, template, and non-type template parameters that are used to compose P participate in template argument deduction.

This keeps consistent with [temp.deduct.type] p1

Template arguments can be deduced in several different contexts, but in each case a type that is specified in terms of template parameters (call it P) is compared with an actual type (call it A)

The same issue is in the below sentence

In certain contexts, however, the value template parameter does not participate in type template argument deduction, but instead uses the values of template arguments that were either deduced elsewhere or explicitly specified. If a template parameter is used only in non-deduced contexts and is not explicitly specified, template argument deduction fails.

It is the template parameter that participates in template argument deduction rather than the value. Furthermore, should we specifically say which case does not the template parameter participate in template argument deduction? At least, we should say the template parameter within a non-deduced context does not participate in the template argument deduction, which can associate it with the latter sentence "If a template parameter is used only in non-deduced contexts...".

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

Search the draft for [temp.deduct.type] and the quoted paragraphs, then compare their terminology with paragraph 1 and the non-deduced-context sentence cited in the issue. Done means the wording consistently identifies template parameters and clearly explains when they do not participate in deduction.

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
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.