Skip to content

Commit d2a0e57

Browse files
committed
CWG2474 Cv-qualification and deletion
1 parent da92321 commit d2a0e57

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/expressions.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5461,14 +5461,14 @@
54615461
\pnum
54625462
\indextext{\idxcode{delete}!undefined}%
54635463
In a single-object delete expression, if the static type of the object to be
5464-
deleted is different from its dynamic type
5464+
deleted is not similar\iref{conv.qual} to its dynamic type
54655465
and the selected deallocation function (see below)
54665466
is not a destroying operator delete,
54675467
the static type shall be a base
54685468
class of the dynamic type of the object to be deleted and the static type shall
54695469
have a virtual destructor or the behavior is undefined. In an array delete
5470-
expression, if the dynamic type of the object to be deleted differs from its
5471-
static type, the behavior is undefined.
5470+
expression, if the dynamic type of the object to be deleted is not similar to
5471+
its static type, the behavior is undefined.
54725472

54735473
\pnum
54745474
The \grammarterm{cast-expression} in a \grammarterm{delete-expression} shall

0 commit comments

Comments
 (0)