Relative Content

Tag Archive for c++constants

Proper Use of const for Class Member Variables in C++

I am aware of the general guideline “Do not use const inside classes,” but I have encountered situations where I am unsure about the proper declaration of variables. For example, consider the following code: