Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 0af79b8

Browse files
author
Dawn Perchik
committed
[expr.prim.req.compound] Resolve conflicts in P1084R2 and P1141R2.
Replace /qualified-concept-name/ with /type-constraint/ in grammar for /return-type-requirement/, and rewrite the new bullet for /return-type-requirement/ added in P1084R2 to use the term immediately-declared constraint introduced in P1141R2.
1 parent 6ea0f72 commit 0af79b8

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

source/expressions.tex

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2600,7 +2600,7 @@
26002600
\begin{bnf}
26012601
\nontermdef{return-type-requirement}\br
26022602
trailing-return-type\br
2603-
\terminal{->} qualified-concept-name
2603+
\terminal{->} type-constraint
26042604
\end{bnf}
26052605

26062606
\pnum
@@ -2631,20 +2631,12 @@
26312631
If conversion fails, the enclosing \grammarterm{requires-expression}
26322632
is \tcode{false}.
26332633
\item
2634-
If the \grammarterm{return-type-requirement} has a
2635-
a \grammarterm{qualified-concept-name}\iref{temp.param} of the form
2636-
\opt{\grammarterm{nested-name-specifier}} \grammarterm{concept-name},
2637-
the concept it denotes shall be satisfied with
2638-
\tcode{decltype((E))} as its sole argument.
2639-
If the \grammarterm{return-type-requirement} has a
2640-
a \grammarterm{qualified-concept-name} of the form
2641-
\opt{\grammarterm{nested-name-specifier}} \grammarterm{concept-name}
2642-
\tcode{<} \opt{\grammarterm{template-argument-list}} \tcode{>},
2643-
the concept it denotes shall be satisfied with
2644-
\tcode{decltype((E))} as its first argument and with
2645-
the elements, in the order listed, of
2646-
the \grammarterm{template-argument-list}
2647-
comprising the concept’s subsequent arguments.
2634+
If the \grammarterm{return-type-requirement}
2635+
is of the form \tcode{->} \grammarterm{type-constraint}, then
2636+
the contextually-determined type being constrained
2637+
is \tcode{decltype((E))}.
2638+
The immediately-declared constraint\iref(temp) of \tcode{decltype((E))}
2639+
shall be satisfied.
26482640
\begin{note}
26492641
Thus, constraints of the form
26502642
\tcode{\{ E \} -> Concept;} or of the form

0 commit comments

Comments
 (0)