Skip to content

Commit 65fae03

Browse files
committed
[class.dtor] Change redundant wording into note
1 parent ea10e25 commit 65fae03

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

source/classes.tex

+7-3
Original file line numberDiff line numberDiff line change
@@ -2264,11 +2264,15 @@
22642264
\tcode{virtual}\iref{class.virtual}
22652265
or pure
22662266
\tcode{virtual}\iref{class.abstract}.
2267+
\begin{note}
22672268
If the destructor of a class is virtual and
22682269
any objects of that class or any derived class are created in the program,
2269-
the destructor shall be defined.
2270-
If a class has a base class with a virtual destructor, its destructor
2271-
(whether user- or implicitly-declared) is virtual.
2270+
the destructor must be defined; see~\ref{basic.def.odr}.
2271+
\end{note}
2272+
\begin{note}
2273+
If a class has a base class with a virtual destructor, its destructor
2274+
(whether user- or implicitly-declared) is virtual\iref{class.virtual}.
2275+
\end{note}
22722276

22732277
\pnum
22742278
\begin{note}

0 commit comments

Comments
 (0)