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 2233
2233
\pnum
2234
2234
A destructor is trivial if it is not user-provided and if:
2235
2235
\begin {itemize }
2236
- \item the destructor is not \tcode { virtual} ,
2236
+ \item the destructor is not virtual,
2237
2237
2238
2238
\item all of the direct base classes of its class have trivial destructors, and
2239
2239
2265
2265
\pnum
2266
2266
\indextext {destructor!virtual}%
2267
2267
\indextext {destructor!pure virtual}%
2268
- A prospective destructor can be declared
2269
- \tcode {virtual}\iref {class.virtual }
2270
- or pure
2271
- \tcode {virtual}\iref {class.abstract }.
2268
+ A prospective destructor can be
2269
+ declared \keyword {virtual}\iref {class.virtual }
2270
+ and with a \grammarterm {pure-specifier}\iref {class.abstract }.
2272
2271
If the destructor of a class is virtual and
2273
2272
any objects of that class or any derived class are created in the program,
2274
2273
the destructor shall be defined.
You can’t perform that action at this time.
0 commit comments