Skip to content

Commit 5b089c3

Browse files
burblebeetkoeppe
authored andcommitted
CWG2831 Non-templated function definitions and requires-clauses
1 parent b37a8ce commit 5b089c3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

source/declarations.tex

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6305,8 +6305,10 @@
63056305
a \grammarterm{mem-initializer-id}\iref{class.base.init}.
63066306
The optional \grammarterm{attribute-specifier-seq} in a \grammarterm{function-definition}
63076307
appertains to the function.
6308-
A \grammarterm{virt-specifier-seq} can be part of a \grammarterm{function-definition}
6309-
only if it is a \grammarterm{member-declaration}\iref{class.mem}.
6308+
A \grammarterm{function-definition} with a \grammarterm{virt-specifier-seq}
6309+
shall be a \grammarterm{member-declaration}\iref{class.mem}.
6310+
A \grammarterm{function-definition} with a \grammarterm{requires-clause}
6311+
shall define a templated function.
63106312

63116313
\pnum
63126314
In a \grammarterm{function-definition},

0 commit comments

Comments
 (0)