How do you share symbolic constants across different files and modules in C++?
The best practice would be using
enum to do that. The first thing you do is to put
all your enum declarations/definitions in a dedicated
namespace inside a header file.
The second step would be including the header file in your source file(s) whenever you
Simple and easy. Forget about scoping and name conflicts.