Skip to content

Commit 07ae51a

Browse files
frederick-vs-jatkoeppe
authored andcommitted
[expr.prim.req.general] Correct the IFNDR example
1 parent 62e33ca commit 07ae51a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/expressions.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2892,7 +2892,7 @@
28922892
\begin{codeblock}
28932893
template<typename T> concept C =
28942894
requires {
2895-
new int[-(int)sizeof(T)]; // ill-formed, no diagnostic required
2895+
new decltype((void)T{}); // ill-formed, no diagnostic required
28962896
};
28972897
\end{codeblock}
28982898
\end{example}

0 commit comments

Comments
 (0)