There is a constant method, but it changes one of the fields. For the fact that this field can be changed in a constant object, I am responsible, but the compiler does not believe in the word, what can I do?
class A { public: void funct() const; private: int a; int b; } void A::funct() const { b++; }