A better solution to this problem is to use the mutable keyword. A mutable member of a const object can still be modified. The assumption is that a mutable member does not change the visible state of the object.
Join our social networks and RSS feed to keep up to date with latest news and publications
March 26, 2007, 11:24 p.m. - Steven
A better solution to this problem is to use the mutable keyword. A mutable member of a const object can still be modified. The assumption is that a mutable member does not change the visible state of the object.