Ray's playground

 

Item 16: Use the same form in corresponding uses of new and delete.(Effective C++)

If you use [] in a new expression, you must use [] in the corresponding delete expression. If you don't use [] in a new expression, you mustn't use [] in the corresponding delete expression.

posted on 2011-03-23 21:29  Ray Z  阅读(202)  评论(0编辑  收藏  举报

导航