Possible Duplicate:
C++ 'mutable' keyword
When have you used C++ 'mutable' keyword?
I understand what mutable
means and how it is used, What I would like to know is what is the real motivation behind its existence. I don't think the only motivation is to bypass the immutability of this
in const
member functions I rather think there is something more to it.
I don't think it is just a means to bypass problems in poorly designed systems? or is it?
An obvious offshoot of the original question when does using mutable
makes sense even in a good design?