Ray's playground

 

Item 17: Store newed objects in smart pointers in standalone statements.(Effective C++)

Store newed objects in smart pointers in standalone statements. Failure to do this can lead to subtle resource leaks when exceptions are thrown.

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

导航