Google C++ Style Guide• Data Members (except static const data members) If copying and assignment are disabled with a macro such as DISALLOW_COPY_AND_ASSIGN, it should be at the end of the private: section, and should be the non-constant format string, you need to insert the value of the macro into the format, rather than the name. Note also that spaces are required around the macro iden- tifier to separate it from the string literal Instead of using a macro to inline performance-critical code, use an inline function. Instead of using a macro to store a constant, use a const variable. Instead of using a macro to “abbreviate” a long0 码力 | 83 页 | 238.71 KB | 1 年前3
共 1 条
- 1













