Skip to content

[class.dtor] Remove incorrect uses of virtual as a keyword #3962

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 18, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions source/classes.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2228,7 +2228,7 @@
\pnum
A destructor is trivial if it is not user-provided and if:
\begin{itemize}
\item the destructor is not \tcode{virtual},
\item the destructor is not virtual,

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

Expand Down Expand Up @@ -2260,10 +2260,9 @@
\pnum
\indextext{destructor!virtual}%
\indextext{destructor!pure virtual}%
A prospective destructor can be declared
\tcode{virtual}\iref{class.virtual}
or pure
\tcode{virtual}\iref{class.abstract}.
A prospective destructor can be
declared \keyword{virtual}\iref{class.virtual}
and with a \grammarterm{pure-specifier}\iref{class.abstract}.
If the destructor of a class is virtual and
any objects of that class or any derived class are created in the program,
the destructor shall be defined.
Expand Down