Skip to content

Commit 9de0569

Browse files
sdkrystianzygoloid
authored andcommitted
[class.dtor] Remove incorrect uses of virtual as a keyword
1 parent 44c69ba commit 9de0569

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

source/classes.tex

+4-5
Original file line numberDiff line numberDiff line change
@@ -2233,7 +2233,7 @@
22332233
\pnum
22342234
A destructor is trivial if it is not user-provided and if:
22352235
\begin{itemize}
2236-
\item the destructor is not \tcode{virtual},
2236+
\item the destructor is not virtual,
22372237

22382238
\item all of the direct base classes of its class have trivial destructors, and
22392239

@@ -2265,10 +2265,9 @@
22652265
\pnum
22662266
\indextext{destructor!virtual}%
22672267
\indextext{destructor!pure virtual}%
2268-
A prospective destructor can be declared
2269-
\tcode{virtual}\iref{class.virtual}
2270-
or pure
2271-
\tcode{virtual}\iref{class.abstract}.
2268+
A prospective destructor can be
2269+
declared \keyword{virtual}\iref{class.virtual}
2270+
and with a \grammarterm{pure-specifier}\iref{class.abstract}.
22722271
If the destructor of a class is virtual and
22732272
any objects of that class or any derived class are created in the program,
22742273
the destructor shall be defined.

0 commit comments

Comments
 (0)