Skip to content

Commit 17820be

Browse files
committed
[temp] Fix example to use valid expression in requires-clause.
1 parent 47c537a commit 17820be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/templates.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@
214214
in a \grammarterm{requires-clause}.
215215
\begin{example}
216216
\begin{codeblock}
217-
template<int N> requires N == sizeof unsigned short
217+
template<int N> requires N == sizeof new unsigned short
218218
int f(); // error: parentheses required around \tcode{==} expression
219219
\end{codeblock}
220220
\end{example}

0 commit comments

Comments
 (0)