What does C++ standard mean by "cast expression in a delete expression shall be evaluated once"?

Viewed 38

I am going through n3337 and not able to understand what the standard means by following sentence in [expr.delete]:

4 The cast-expression in a delete-expression shall be evaluated exactly once.

Could someone explain what would be the consequence had the above statement not been present?

Please provide contrasting examples to explain it.

0 Answers
Related