Skip to content

Commit d340654

Browse files
sdkrystianzygoloid
authored andcommitted
[class.virtual] Fix example with constrained non-templated function
1 parent 6ea1fa4 commit d340654

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/classes.tex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3881,6 +3881,7 @@
38813881
A virtual function shall not have a trailing \grammarterm{requires-clause}\iref{dcl.decl}.
38823882
\begin{example}
38833883
\begin{codeblock}
3884+
template<typename T>
38843885
struct A {
38853886
virtual void f() requires true; // error: virtual function cannot be constrained\iref{temp.constr.decl}
38863887
};

0 commit comments

Comments
 (0)