好书网为大家整理了经典好书《Exceptional C++(中文版)》中的经典语录,精彩段落及优美句子,重读经典,感悟人生。让读者沉浸在自己的阅读世界里,忘记周围的世界, 与作者一起在另外一个世界里快乐、悲伤、愤怒、平和,欢迎大家阅读~
If a function isn't going to handle (or translate or deliberately absorb) an exception, it should allow the exception to propagate up to a caller who can handle it.
Always structure your code so that resources are correctly freed and data is in a consistent state even in the presence of exceptions.