Skip to content

Commit 3672de8

Browse files
committed
[class.dtor] Remove incorrect uses of virtual as a keyword
1 parent ea10e25 commit 3672de8

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
@@ -2228,7 +2228,7 @@
22282228
\pnum
22292229
A destructor is trivial if it is not user-provided and if:
22302230
\begin{itemize}
2231-
\item the destructor is not \tcode{virtual},
2231+
\item the destructor is not virtual,
22322232

22332233
\item all of the direct base classes of its class have trivial destructors, and
22342234

@@ -2260,10 +2260,9 @@
22602260
\pnum
22612261
\indextext{destructor!virtual}%
22622262
\indextext{destructor!pure virtual}%
2263-
A prospective destructor can be declared
2264-
\tcode{virtual}\iref{class.virtual}
2265-
or pure
2266-
\tcode{virtual}\iref{class.abstract}.
2263+
A prospective destructor can be
2264+
a virtual\iref{class.virtual}
2265+
or pure virtual function\iref{class.abstract}.
22672266
If the destructor of a class is virtual and
22682267
any objects of that class or any derived class are created in the program,
22692268
the destructor shall be defined.

0 commit comments

Comments
 (0)