Hello,
today I learnt this:
And it isn't what I want: is there a way treat this thing, pleaseQt Code:
class A { int* _value; public: A (int value) : _value (new int(value)) {} ~A() { delete _value; } void redouble () const { *_value *= 2; } // const method can modified the value pointed by _value };To copy to clipboard, switch view to plain text mode
Bookmarks