File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 64
64
\tcode {>{>}} token by two consecutive \tcode {>}
65
65
tokens~(\ref {temp.names }).\end {note }
66
66
67
+ \pnum
67
68
The
68
69
\grammarterm {declaration}
69
70
in a
84
85
\item be an \grammarterm {alias-declaration}.
85
86
\end {itemize }
86
87
88
+ \pnum
87
89
A \grammarterm {template-declaration} is a \grammarterm {declaration}.
88
90
\indextext {template!definition of}%
89
91
A \grammarterm {template-declaration} is also a definition
205
207
\grammarterm {constraint-expression}.
206
208
The \grammarterm {constraint-logical-or-expression} of a
207
209
\grammarterm {requires-clause} is an unevaluated operand (Clause~\ref {expr }).
210
+ \begin {note }
211
+ The expression in a \grammarterm {requires-clause}
212
+ uses a restricted grammar to avoid ambiguities.
213
+ Parentheses can be used to specify arbitrary expressions
214
+ in a \grammarterm {requires-clause}.
208
215
\begin {example }
209
216
\begin {codeblock }
210
217
template<int N> requires N == sizeof unsigned short
211
218
int f(); // error: parentheses required around \tcode {==} expression
212
219
\end {codeblock }
213
220
\end {example }
221
+ \end {note }
214
222
215
223
\pnum
216
224
A function template, member function of a class template, variable template,
You can’t perform that action at this time.
0 commit comments