3 ms·I'm a big fan of: this->~MyClass(); new (this) MyClass(); I have unironically used thisby wheybags 3y agoI'm a big fan of: this->~MyClass(); new (this) MyClass(); I have unironically used thisamluto 3y agoI hope you are confident that this doesn’t point to an instance of a derived class.wheybags 3y agoOf course :prramadass 3y agoYeah, I too have used this to wrap message buffers passed to and from kernel and user space; quite handy if you design and use the class with discipline.