Skip to content

Commit d4f472e

Browse files
Dawn Perchikzygoloid
authored andcommitted
CWG2379 Missing prohibition against constexpr in friend declaration
1 parent 7218980 commit d4f472e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/templates.tex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2967,8 +2967,9 @@
29672967
\pnum
29682968
When a friend declaration refers to a specialization of a function
29692969
template, the function parameter declarations shall not include
2970-
default arguments, nor shall the inline specifier be used in such a
2971-
declaration.
2970+
default arguments, nor shall
2971+
the \tcode{inline}, \tcode{constexpr}, or \tcode{consteval} specifiers
2972+
be used in such a declaration.
29722973

29732974
\pnum
29742975
A non-template friend declaration shall not have a \grammarterm{requires-clause}.

0 commit comments

Comments
 (0)