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 5778
5778
If the operand is of
5779
5779
class type, it is contextually implicitly converted\iref {conv }
5780
5780
to a pointer to object
5781
- type.
5782
- \begin {footnote }
5783
- This implies that an object
5784
- cannot be deleted using a pointer of type
5785
- \tcode {\keyword {void}*} because \keyword {void} is not an object type.
5786
- \end {footnote }
5781
+ type
5782
+ and the converted operand is used in place of the original operand
5783
+ for the remainder of this subclause.
5787
5784
Otherwise, it shall be a prvalue of pointer to object type.
5788
5785
The \grammarterm {delete-expression} has type
5789
5786
\keyword {void}.
5790
5787
5791
5788
\pnum
5792
5789
\indextext {\idxcode {delete}!single-object}%
5793
- If the operand has a class type, the operand is converted to a pointer
5794
- type by calling the above-mentioned conversion function, and the
5795
- converted operand is used in place of the original operand for the
5796
- remainder of this subclause.
5797
5790
In a single-object delete expression, the value of the operand of
5798
5791
\keyword {delete} may be a null pointer value,
5799
5792
a pointer value
5837
5830
expression, if the dynamic type of the object to be deleted is not similar to
5838
5831
its static type, the behavior is undefined.
5839
5832
5840
- \pnum
5841
- The \grammarterm {cast-expression} in a \grammarterm {delete-expression} shall
5842
- be evaluated exactly once.
5843
-
5844
5833
\pnum
5845
5834
\indextext {type!incomplete}%
5846
5835
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