From 310275283e4ad7d9ea79a25400c4babef3144258 Mon Sep 17 00:00:00 2001 From: Alisdair Meredith Date: Sat, 5 Sep 2020 15:10:15 -0400 Subject: [PATCH] [class.virtual] index semantics of final and override Index the two paragraphs that actually specify the rules for 'final' and 'override' virt-specifiers applied to functions. I chose to index these specifiers using the 'keyword' macro rather than try to set up a separate indextext entry to ensure: 1) the index points to the right page if ever the paragraph splits across pages 2) the form is consistent with every othert index entry for these two contextual keywords, which are all created by 'keyword' Visually confirmed that the text renders in the same monospace font as the previous 'tcode' entry. --- source/classes.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/classes.tex b/source/classes.tex index 537f0de2a3..3114d119a1 100644 --- a/source/classes.tex +++ b/source/classes.tex @@ -3839,7 +3839,7 @@ \pnum If a virtual function \tcode{f} in some class \tcode{B} is marked with the -\grammarterm{virt-specifier} \tcode{final} and in a class \tcode{D} derived from \tcode{B} +\grammarterm{virt-specifier} \keyword{final} and in a class \tcode{D} derived from \tcode{B} a function \tcode{D::f} overrides \tcode{B::f}, the program is ill-formed. \begin{example} \begin{codeblock} @@ -3854,7 +3854,7 @@ \end{example} \pnum -If a virtual function is marked with the \grammarterm{virt-specifier} \tcode{override} and +If a virtual function is marked with the \grammarterm{virt-specifier} \keyword{override} and does not override a member function of a base class, the program is ill-formed. \begin{example} \begin{codeblock}