A
Andrew Chalk
I have a variable that is initialized with a value read from a configuration
file. Once initialized, it should not be changed anywhere in my program.
What is the best way to enforce this (it should be treated as const)?
Ideally, I would like a violation to generate a compile-time error.
Many thanks.
file. Once initialized, it should not be changed anywhere in my program.
What is the best way to enforce this (it should be treated as const)?
Ideally, I would like a violation to generate a compile-time error.
Many thanks.