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 completely superseded by:
// .h
inline const int MY_CONST = 5;
Is there any reason to use the first variant nowadays?
Note that the latter has higher readability because the value is visible in the header file (self-documenting).