2
2b|!2b==?
Is this legal ?
MyClass& MyClass::Clone() const
{
//this should invoke the copy ctor ...
//but can I reference an object within itself ?
MyClass* mc = new MyClass(*this);
return *mc ;
};
MyClass& MyClass::Clone() const
{
//this should invoke the copy ctor ...
//but can I reference an object within itself ?
MyClass* mc = new MyClass(*this);
return *mc ;
};