File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 2228
2228
\pnum
2229
2229
A destructor is trivial if it is not user-provided and if:
2230
2230
\begin {itemize }
2231
- \item the destructor is not \tcode { virtual} ,
2231
+ \item the destructor is not virtual,
2232
2232
2233
2233
\item all of the direct base classes of its class have trivial destructors, and
2234
2234
2260
2260
\pnum
2261
2261
\indextext {destructor!virtual}%
2262
2262
\indextext {destructor!pure virtual}%
2263
- A prospective destructor can be declared
2264
- \tcode {virtual}\iref {class.virtual }
2265
- or pure
2266
- \tcode {virtual}\iref {class.abstract }.
2263
+ A prospective destructor can be
2264
+ a virtual\iref {class.virtual }
2265
+ or pure virtual function\iref {class.abstract }.
2267
2266
If the destructor of a class is virtual and
2268
2267
any objects of that class or any derived class are created in the program,
2269
2268
the destructor shall be defined.
You can’t perform that action at this time.
0 commit comments