Skip to content

Commit 2ed4f92

Browse files
committed
[class.dtor] Change redundant wording into note
1 parent 4a6f2e3 commit 2ed4f92

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

source/classes.tex

+4-3
Original file line numberDiff line numberDiff line change
@@ -2098,9 +2098,10 @@
20982098
A prospective destructor can be
20992099
declared \keyword{virtual}\iref{class.virtual}
21002100
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.
2101+
\begin{note}
2102+
Since a pure virtual destructor will be invoked by the destructor of
2103+
a derived class, it must still be defined in most cases; see~\ref{basic.def.odr}.
2104+
\end{note}
21042105

21052106
\pnum
21062107
\begin{note}

0 commit comments

Comments
 (0)