Objects declared as mutable are not used for certain optimizations, since their values ββcan change at any time. The system always reads the current value of the volatile object at the requested point, even if the previous command requested the value from the same object. In addition, the value of the object is recorded immediately upon assignment.
A volatile object can only call unstable member functions.
Thus, by marking a member function as mutable, you will make any access to non-static data elements of the object inside this member function as mutable.
TelKitty May 25 '13 at 3:38 2013-05-25 03:38
source share