You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following sentence frequently appears in several paragraphs in subclause [temp.deduct.general]
If the substitution results in an invalid type, as described above, type deduction fails.
However, we do not see the relevant contents referred to by "as described above". AFAIK, the invalid type or expression in the immediate context of the function type or something else stated in [temp.deduct.general] p8 can result in "deduction fails" rather than a program ill-formed. Does "as described above" intend to refer to [temp.deduct.general] p8? Should we rearrange the position of [temp.deduct.general] p8 to make "as described above" have a corresponding expound.
Since [temp.deduct.general] p7 says
The substitution occurs in all types and expressions that are used in the function type function type outside of the exception specification and in template parameter declarations.
[temp.deduct.general] p8 says
Only invalid types and expressions in the immediate context of the function type outside of the exception specification, its template parameters, and its explicit-specifier can result in a deduction failure.
template parameter seems to refer to T rather than typename T = type-idopt(if it is the template parameter declaration), deduction failure can also occur in type-id.
The text was updated successfully, but these errors were encountered:
xmh0511
changed the title
[temp.deduct.general] The rule regarding "deduction fails" may be restructured
[temp.deduct.general] The rule regarding "deduction fails" need to be rearranged
Dec 15, 2021
xmh0511
changed the title
[temp.deduct.general] The rule regarding "deduction fails" need to be rearranged
[temp.deduct.general] The rules regarding "deduction fails" need to be rearranged
Dec 15, 2021
The following sentence frequently appears in several paragraphs in subclause [temp.deduct.general]
However, we do not see the relevant contents referred to by "as described above". AFAIK, the invalid type or expression in the immediate context of the function type or something else stated in [temp.deduct.general] p8 can result in "deduction fails" rather than a program ill-formed. Does "as described above" intend to refer to [temp.deduct.general] p8? Should we rearrange the position of [temp.deduct.general] p8 to make "as described above" have a corresponding expound.
Since [temp.deduct.general] p7 says
[temp.deduct.general] p8 says
template parameter seems to refer to
T
rather than typename T = type-idopt(if it is the template parameter declaration), deduction failure can also occur intype-id
.The text was updated successfully, but these errors were encountered: