Possible Duplicate:
Calling assignment operator in copy constructor
I find that I am always implementing my copy-constructors as wrappers of my assignment operator, as follows:
MyClass(const MyClass& orig)
{
*this = orig;
//Sometimes I use the following - they are equivalent, right?
//this->operator=(orig);
}
I am wondering if there is something wrong with this, or if there is ever a situation where the above would be wrong, or cause unwanted results.