class C{ //methods and properties } void C::some_method(C* b){ delete this; this = b; }
This gives me follwing error when compiling:>
You cannot change what this points to. I would also not know why you'd want to do this.
this