Item 18
- 章节名:Item 18
… I've always had to agree that exceptions are the right way to signal constructor failures, given that constructors cannot report errors via return codes (ditto for most operators). 引自 Item 18
47人阅读
晨星对本书的所有笔记 · · · · · ·
-
Item 18
In C++, if construction of any base or member sub-object fails, the whole object's cons...
-
Item 18
Incidentally, this "optional parts of an object" idea is another great reason to us del...
-
Item 18
-
Item 18
Long after I started pushing the Pimpl idiom and bashing needless inheritance, I kept c...
-
Item 18
I have found the "if a constructor encounters an error, set a status bit and let the us...
> 查看全部63篇
说明 · · · · · ·
表示其中内容是对原文的摘抄