somebody told me about a reserved word in c++, that i never heard about (he too...)
that word is not implemented in anywhere on the internet
that word is: mutable
I paste this text from Inprise Docs. Hope it serves for help.
mutable
Category
C++-Specific Keywords, Storage class specifiers
Syntax
mutable <variable name>;
Description
Use the mutable specifier to make a variable modifiable even though it is in a const-qualified expression.
Using the mutable Keyword
Only class data members can be declared mutable. The mutable keyword cannot be used on static or const names. The purpose of mutable is to specify which data members can be modified by const member functions. Normally, a const member function cannot modify data members.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.