Skip to content

Commit

Permalink
Merge pull request zh-google-styleguide#27 from alvisisme/master
Browse files Browse the repository at this point in the history
补充了一个反引号
  • Loading branch information
yangyubo committed Jan 15, 2016
2 parents 2cca63c + bf75d47 commit ae13703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion google-cpp-styleguide/headers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
* 很难判断什么时候该用前置声明,什么时候该用 ``#includes``, 特别是涉及隐式转换运算符的时候。极端情况下,用前置声明代替 ``includes`` 甚至都会暗暗地改变代码的含义。
* 前置声明了不少来自头文件的 symbol 时,就会比单单 ``includes`` 一行冗长。
* 前置声明函数或模板有时会害得头文件开发者难以轻易变动其 API. 就像扩大形参类型,加个自带默认参数的模板形参等等。
* 前置声明来自命名空间 ``std::` 的 symbol 时,其行为未定义。
* 前置声明来自命名空间 ``std::`` 的 symbol 时,其行为未定义。
* 仅仅为了能前置声明而重构代码(比如用指针成员代替对象成员),后者会变慢且复杂起来。
* 还没有实践证实前置声明的优越性。

Expand Down

0 comments on commit ae13703

Please sign in to comment.