條款06 :Explicitly disallow the use of compiler-generated functions you do not want.
實(shí)現(xiàn) :通過繼承一個(gè)類,該類把不想你不想要的函數(shù)設(shè)為private.
現(xiàn)狀 :很少在設(shè)計(jì)類時(shí)控制一些方法不自動(dòng)生成
條款08 :Prevent exceptions from leaving destructors.
實(shí)現(xiàn) :不要把一些有可能出現(xiàn)異常的函數(shù)放在destructor中執(zhí)行,最好再專門寫一個(gè)函數(shù)以供用戶來調(diào)用。
現(xiàn)狀 :因?yàn)楫惓?huì)影響程序執(zhí)行效率,所以我們開發(fā)中沒有使用。