I\'ve a class which stores a reference to its parent, the reference is passed in the constructor. If I try to copy an instance I get an error \"error C2582: \'operator =\' f
but if you are really gung ho about doing this:
#include MyClass::MyClass(const MyClass &rhs): parent(rhs.parent) { } MyClass &MyClass::operator=(const MyClass &rhs) { if (this!=&rhs) { this->~MyClass(); new (this) MyClass(rhs); } return *this; }