Skip to content

Commit 0171f85

Browse files
AlisdairMzygoloid
authored andcommitted
[class.virtual] Add \keyword markup for 'final' and 'override' (#4139)
This indexes the two paragraphs that actually specify the rules for 'final' and 'override' applied to functions.
1 parent c6bc8fb commit 0171f85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/classes.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3850,7 +3850,7 @@
38503850

38513851
\pnum
38523852
If a virtual function \tcode{f} in some class \tcode{B} is marked with the
3853-
\grammarterm{virt-specifier} \tcode{final} and in a class \tcode{D} derived from \tcode{B}
3853+
\grammarterm{virt-specifier} \keyword{final} and in a class \tcode{D} derived from \tcode{B}
38543854
a function \tcode{D::f} overrides \tcode{B::f}, the program is ill-formed.
38553855
\begin{example}
38563856
\begin{codeblock}
@@ -3865,7 +3865,7 @@
38653865
\end{example}
38663866

38673867
\pnum
3868-
If a virtual function is marked with the \grammarterm{virt-specifier} \tcode{override} and
3868+
If a virtual function is marked with the \grammarterm{virt-specifier} \keyword{override} and
38693869
does not override a member function of a base class, the program is ill-formed.
38703870
\begin{example}
38713871
\begin{codeblock}

0 commit comments

Comments
 (0)