<<< | Index | >>> |
The rule is simple: only const member function calls are acceptable for const objects.
The const member also constrains class writer:
Illegal to modify class data in const member functions
Illegal to call non-const member functions
But...
...Sometimes such constraints are too tight !
<<< | Index | >>> |