Effective C++:条款02:尽量以const, enum, inline替换#define (Prefer consts, enums, and inline to #defines.)

对于单纯常量,最好以const对象或enums替换#defines。

对于形似函数的宏(macros),最好改用inline函数替换#defines。

---------------------------------------------------------------------------
You got a dream
You gotta protect it
People can't do something themselves
They wanna tell you you can do it
If you want something
Go get it
原文地址:https://www.cnblogs.com/elite/p/1988657.html