How to Reduce the Contagious Power of ‘const’

For the purpose of optimization, the C++ programming language decided that the users should manually specify ‘const’ annotations for variables that they know will never be modified. While I admit the possible usefulness of this annotation, I often see it misused in the code base I’m working on, and this often results in a contagious phenomenon where unnecessarily many … Continue reading »