Can I reallocate object itself?
Recently i studied about copy constructor and i get curious about deleting 'this' and reallocating it.
obj(const obj &s) {
if(this != NULL)
delete this;
this = new obj();
}
And it says [Error] lvalue required as left operand of assignment. Is it impossible to reallocate itself? if so, why is that?