Is there any reason to use extern for constants anymore?

后端 未结 0 1980
孤独总比滥情好
孤独总比滥情好 2020-11-30 03:48

In my earlier days I often had constructs like:

// .h
extern const int MY_CONST;

// .cpp
const int MY_CONST = 5;

Is it true that this is com

相关标签:
回答
  • 消灭零回复
提交回复
热议问题