We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea10e25 commit ed0bc33Copy full SHA for ed0bc33
source/classes.tex
@@ -2264,11 +2264,15 @@
2264
\tcode{virtual}\iref{class.virtual}
2265
or pure
2266
\tcode{virtual}\iref{class.abstract}.
2267
+\begin{note}
2268
If the destructor of a class is virtual and
2269
any objects of that class or any derived class are created in the program,
-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.
+the destructor must be defined; see~\ref{basic.def.odr}.
+\end{note}
2272
2273
+If a class \tcode{C} has a base class with a virtual destructor,
2274
+the destructor of \tcode{C} (whether user- or implicitly-declared) is virtual\iref{class.virtual}.
2275
2276
2277
\pnum
2278
\begin{note}
0 commit comments