<分区>
const
声明是否有助于编译器 (GCC) 生成更快的代码,还是它们仅对可读性和正确性有用?
Zed Shaw 认为 const
在 C/C++ 中没有用或被过度使用:
Next is all the bizarre fascination with const. For some odd reason C++ loves to make you slap const on every part of a declaration, and yet I get the same end result as C: a function is called. (...)
(来自:http://librelist.com/browser//mongrel2/2010/7/15/c-verses-c++/#770d94bcfc6ddf1d8510199996b607dd)