We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a6f2e3 commit 2ed4f92Copy full SHA for 2ed4f92
source/classes.tex
@@ -2098,9 +2098,10 @@
2098
A prospective destructor can be
2099
declared \keyword{virtual}\iref{class.virtual}
2100
and with a \grammarterm{pure-specifier}\iref{class.abstract}.
2101
-If the destructor of a class is virtual and
2102
-any objects of that class or any derived class are created in the program,
2103
-the destructor shall be defined.
+\begin{note}
+Since a pure virtual destructor will be invoked by the destructor of
+a derived class, it must still be defined in most cases; see~\ref{basic.def.odr}.
2104
+\end{note}
2105
2106
\pnum
2107
\begin{note}
0 commit comments