File tree Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Original file line number Diff line number Diff line change 5780
5780
If the operand is of
5781
5781
class type, it is contextually implicitly converted\iref {conv }
5782
5782
to a pointer to object
5783
- type.
5784
- \begin {footnote }
5785
- This implies that an object
5786
- cannot be deleted using a pointer of type
5787
- \tcode {\keyword {void}*} because \keyword {void} is not an object type.
5788
- \end {footnote }
5783
+ type
5784
+ and the converted operand is used in place of the original operand
5785
+ for the remainder of this subclause.
5789
5786
Otherwise, it shall be a prvalue of pointer to object type.
5790
5787
The \grammarterm {delete-expression} has type
5791
5788
\keyword {void}.
5792
5789
5793
5790
\pnum
5794
5791
\indextext {\idxcode {delete}!single-object}%
5795
- If the operand has a class type, the operand is converted to a pointer
5796
- type by calling the above-mentioned conversion function, and the
5797
- converted operand is used in place of the original operand for the
5798
- remainder of this subclause.
5799
5792
In a single-object delete expression, the value of the operand of
5800
5793
\keyword {delete} may be a null pointer value,
5801
5794
a pointer value
5839
5832
expression, if the dynamic type of the object to be deleted is not similar to
5840
5833
its static type, the behavior is undefined.
5841
5834
5842
- \pnum
5843
- The \grammarterm {cast-expression} in a \grammarterm {delete-expression} shall
5844
- be evaluated exactly once.
5845
-
5846
5835
\pnum
5847
5836
\indextext {type!incomplete}%
5848
5837
If the object being deleted has incomplete class type at the point of
You can’t perform that action at this time.
0 commit comments