Where should mutable be used? I'm not sure if using it would subvert the protection const gives.
This is a discussion on mutable within the C++ Programming forums, part of the General Programming Boards category; Where should mutable be used? I'm not sure if using it would subvert the protection const gives....
Where should mutable be used? I'm not sure if using it would subvert the protection const gives.
>>Where should mutable be used?
When the object may be const (from the client's perspective), but the internal workings require that a data member be changed.
>> where should i use mutable.
Inside a class on a datamember that is logically const but not physically const.
Free the weed!! Class B to class C is not good enough!!
And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi