Skip to content

Commit 4feb958

Browse files
committed
CWG3117 Overriding by a consteval virtual function
1 parent 81d0390 commit 4feb958

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/classes.tex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4185,8 +4185,9 @@
41854185
\indextext{function!virtual|)}
41864186

41874187
\pnum
4188-
A \keyword{consteval} virtual function shall not override
4189-
a virtual function that is not \keyword{consteval}.
4188+
A class with a \keyword{consteval} virtual function that overrides
4189+
a virtual function that is not \keyword{consteval}
4190+
shall have consteval-only type\iref{basic.types.general}.
41904191
A \keyword{consteval} virtual function shall not be overridden by
41914192
a virtual function that is not \keyword{consteval}.
41924193

0 commit comments

Comments
 (0)