参看
《Exceptional C++ Style》 40 New Engineering Puzzles , Programming Problems, and Solutions 3
By Herb Sutter, Andrei Alexandrescu 著 树人 译编码风格 14. 优先使用编译时和链接时错误,而不是运行时错误。 不要把可以在构建时做的事情推迟到运行时来
By Herb Sutter, Andrei Alexandrescu 著 树人 译组织和方针问题 0. 不要为小事斤斤计较。(或者说是:知道什么东西不需要标准化) 少说废话,捡有必要的说:
C++ Coding Standards Item 2 : Use an automated build system Summary Push the (singular) button: Use
Herb Sutter is secretary of the ISO/ANSI C++ standards committee, is an accomplished author and C++
By Herb Sutter, Andrei Alexandrescu 著 树人 译类型安全90. 避免使用类型转换,优先使用多态。 关闭转换:避免通过转换一个对象的类型来定制行为。通过模
By Herb Sutter, Andrei Alexandrescu树人 译STL:容器 76. 默认情况下使用vector。否则,选择一个适当的容器。 使用“正确(合适)的容
By Herb Sutter, Andrei Alexandrescu 著 树人译 模板和泛型 64. 明智地混合使用静态和动态多态。 比单纯的部分的总和更多:静态和动态多态是互补的。理解它
By Herb Sutter, Andrei Alexandrescu 著 树人译 名字空间和模块 57. 把类型和其非成员函数接口放在同一个名字空间中。 非成员函数也是函数:为了能被正确地