Implementing the copy constructor in terms of operator=

后端 未结 8 1931
自闭症患者
自闭症患者 2020-12-28 16:19

If the operator= is properly defined, is it OK to use the following as copy constructor?

MyClass::MyClass(MyClass const &_copy)
{
    *this          


        
8条回答
提交回复
热议问题