Skip to content

Commit d5e84cc

Browse files
authored
[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 d27fe13 commit d5e84cc

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
@@ -3839,7 +3839,7 @@
38393839

38403840
\pnum
38413841
If a virtual function \tcode{f} in some class \tcode{B} is marked with the
3842-
\grammarterm{virt-specifier} \tcode{final} and in a class \tcode{D} derived from \tcode{B}
3842+
\grammarterm{virt-specifier} \keyword{final} and in a class \tcode{D} derived from \tcode{B}
38433843
a function \tcode{D::f} overrides \tcode{B::f}, the program is ill-formed.
38443844
\begin{example}
38453845
\begin{codeblock}
@@ -3854,7 +3854,7 @@
38543854
\end{example}
38553855

38563856
\pnum
3857-
If a virtual function is marked with the \grammarterm{virt-specifier} \tcode{override} and
3857+
If a virtual function is marked with the \grammarterm{virt-specifier} \keyword{override} and
38583858
does not override a member function of a base class, the program is ill-formed.
38593859
\begin{example}
38603860
\begin{codeblock}

0 commit comments

Comments
 (0)