I have a requirement where a (const) variable should be available throughout an entire cpp which consists of several classes. I have decided to use a namespace to solve the problem, but unsure about the following:
- Do I need to define this variable as static?
- Is it true that I can avoid making the variable static only if I go with an unnamed namespace?