Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[temp.deduct] editorial changes to clarify substitution #3095

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

[temp.deduct] editorial changes to clarify substitution #3095

wants to merge 1 commit into from

Conversation

hawkinsw
Copy link
Contributor

An initial reading of [temp.deduct] may be confusing given
the repeated and sometimes ambiguous use of the term substitution.
This revision should make that clearer.

source/templates.tex Outdated Show resolved Hide resolved
@zygoloid zygoloid added the changes requested Changes to the wording or approach have been requested and not yet applied. label Oct 6, 2019
An initial reading of [temp.deduct] may be confusing given
the repeated and sometimes ambiguous use of the term substitution.
This revision should make that clearer.
@hawkinsw
Copy link
Contributor Author

@zygoloid Mr. Smith, I was just wondering if the rewording that I did in response your helpful comments satisfied you. Please let me know if/how I can do further work on this. Thanks again for the feedback on this rewording!

@jensmaurer jensmaurer removed the changes requested Changes to the wording or approach have been requested and not yet applied. label Jun 16, 2020
not been deduced and its corresponding template parameter has a
default argument, the template argument is determined by substituting
the template arguments determined for preceding template parameters
into the default argument. If the substitution results in an invalid type,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're trying to use semantic line breaks in any text newly entering the standard. https://sembr.org/
That means (at the very least) that every sentence starts on a new line. Please adjust accordingly.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah this paragraph's diff would have been a lot easier to review if there was a line break after the first sentence, because the rest of the paragraph is unchanged. Your rejustification is unhelpful, it makes it look like the entire paragraph has changed.

those constraints are checked for satisfaction\iref{temp.constr.constr}.
If the constraints are not satisfied, type deduction fails.
The template argument values determined above by template argument deduction
or default template arguments are substituted for their corresponding template
Copy link
Member

@jwakely jwakely Jun 16, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dislike "determined above by ... or default template arguments". We do not determined them "by default template arguments". We obtain them, which is what the original text says.

Maybe just insert "obtained from" before "default template arguments", or maybe:

The template argument values found by template argument deduction or obtained from default template arguments are substituted ...

Also, "template argument values" ? These are not necessarily values.

Edit: I see that [temp.deduct] p1 refers to these as values. Huh.

@tkoeppe
Copy link
Contributor

tkoeppe commented Dec 14, 2020

@hawkinsw: Could you please rebase and switch to semantic line breaks as requested?

I'm not entirely sure yet what we'll do with this suggestion; I'm tempted to get CWG to take a look at it (or at least have some CWG members review it).

@tkoeppe tkoeppe added changes requested Changes to the wording or approach have been requested and not yet applied. needs rebase The pull request needs a git rebase to resolve merge conflicts. labels Dec 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changes requested Changes to the wording or approach have been requested and not yet applied. needs rebase The pull request needs a git rebase to resolve merge conflicts.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants