You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a single-object delete expression, the value of the operand of delete may be a null pointer value, a pointer to a non-array object created by a previous new-expression, or a pointer to a subobject representing a base class of such an object. If not, the behavior is undefined.
Which previous new-expression does the rule refer to? Presumably, it shall be a new-expression that allocated an object of non-class type. Hence, the above rule should be that
In a single-object delete expression, the value of the operand of delete may be a null pointer value, a pointer to a non-array object created by a previous new-expression that allocated an object of non-class type, or a pointer to a subobject representing a base class of such an object. If not, the behavior is undefined.
Since we although said "a pointer to a non-array object", however, it is not sufficient, a pointer to an initial element of an array is also considered as "a pointer to a non-array object "
The text was updated successfully, but these errors were encountered:
Which previous new-expression does the rule refer to? Presumably, it shall be a new-expression that allocated an object of non-class type. Hence, the above rule should be that
Since we although said "a pointer to a non-array object", however, it is not sufficient, a pointer to an initial element of an array is also considered as "a pointer to a non-array object "
The text was updated successfully, but these errors were encountered: