static const Member Value vs. Member enum : Which Method is Better & Why?
The enum hack used to be necessary because many compilers didn’t support in-place initialization of the value. Since this is no longer an issue, go for the other option. Modern compilers are also capable of optimizing this constant so that no storage space is required for it. The only reason for not using the static … Read more