DEV Community

Discussion on: When to use const in C++? Part II: member variables

Collapse
 
sandordargo profile image
Sandor Dargo

Semantics are definitely important, but it's also good if technically your code follows your intentions. I definitely used const members in a way where they were semantically correct, but I didn't consider the technical implications.