By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,159 Members | 956 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,159 IT Pros & Developers. It's quick & easy.

delete NULL, what about delete[] NULL

P: n/a
Hello,

I could find in the C++ definition that:

delete NULL (delete 0) is perfectly valid. But I couldn't find the same
thing for delete[]...

Thanks
Mathieu

Jul 22 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Mathieu Malaterre wrote:
...
I could find in the C++ definition that:

delete NULL (delete 0) is perfectly valid. But I couldn't find the same
thing for delete[]...
...


5.3.5/2 states that for both forms of 'delete'.

--
Best regards,
Andrey Tarasevich
Jul 22 '05 #2

P: n/a
Andrey Tarasevich wrote:
Mathieu Malaterre wrote:
...
I could find in the C++ definition that:

delete NULL (delete 0) is perfectly valid. But I couldn't find the same
thing for delete[]...
...

5.3.5/2 states that for both forms of 'delete'.


Excellent thanks, thus xlC has a bug (at least the version I am using).

Jul 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.