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
template <classT>
requires Common<T, int>()
autof(T t) { return t != 0 ? t : 42; }
However, the rules for concept resolution in [temp.constr.resolve]/3 don't properly specify behavior for a concept name used in a partial-concept-id in a template-introduction. Bullet 3.2 is the only one concerned with template-introductions:
If C is the concept-name in a template-introduction. the concept argument list is a sequence
of wildcards of the same length as the introduction-list of the template-introduction.
to allow for use of a partial-concept-id in a template-introduction, I think this needs to be replaced with:
If C is part of a template-introduction,
If the template-introduction consists solely of the concept-nameC, the concept argument list is a sequence of wildcards of the same length as the introduction-list of the template-introduction.
If C is the concept-name of a partial-concept-id, the concept argument list is a sequence of wildcards of the same length as the introduction-list of the template-introduction followed by the arguments that appear in the template-argument-list of the partial-concept-id.
The text was updated successfully, but these errors were encountered:
Apologies if this isn't the correct place to report issues with the TS, I haven't heard anything about the to-be-created issue repository. Let me know if it would be more appropriate to post this to c++std-core.
Apologies if this isn't the correct place to report issues with the TS, I
haven't heard anything about the to-be-created issue repository. Let me
know if it would be more appropriate to post this to c++std-core.
—
Reply to this email directly or view it on GitHub #92 (comment)
.
The grammar allows the use of a partial-concept-id in a template-introduction, e.g.,
which I would expect to be equivalent to
However, the rules for concept resolution in [temp.constr.resolve]/3 don't properly specify behavior for a concept name used in a partial-concept-id in a template-introduction. Bullet 3.2 is the only one concerned with template-introductions:
to allow for use of a partial-concept-id in a template-introduction, I think this needs to be replaced with:
The text was updated successfully, but these errors were encountered: