class MyClass {
public:
void F() const {
const_cast
//c = 10;
}
private :
int c;
};
Other solution is mutable.
Data structures, Algorithms, Coding, Technical Interview Questions and much more. (Still work in progress)
0 comments:
Post a Comment