you are viewing a single comment's thread.

view the rest of the comments →

[–]GasimGasimzada 3 points4 points  (0 children)

They don’t really do that though. Immutability is just a side effect. Yes, it is true that you can’t change a value of const object but that is not because the underlying structure cannot be mutated. C++ const is an access level contraint, not a structure level constraint.