[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Are delete and delete[] equivalent?
From: |
Aj |
Subject: |
Re: Are delete and delete[] equivalent? |
Date: |
10 Apr 2006 14:37:11 -0700 |
User-agent: |
G2/0.2 |
Well, I think section 5.3.5.2 of the 1997 C++ draft standard only says
that the behavior is undefined if you use an array with "delete" or a
non-array with "delete[]":
http://www.open-std.org/jtc1/sc22/open/n2356/expr.html#expr.delete
Does the current standard contradict this?
What would be helpful is if someone with knowledge of g++ internals
could point to the code that answers the question one way or the other.
Best Regards,
Aj