コンストラクタ内でnewして、デストラクタでdeleteした場合、コンストラクタで例外が飛べばその領域は誰も解放しないことになる。これを回避するのは簡単で、メンバのコンストラクタは必ず自身のコンストラクタより先に完了するから、スマートポインタでnewしたオブジェクトを持てばいい
0 replies
1 retweet
5 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.