Skip to main content
Add title
Link
MSalters
  • 181.7k
  • 11
  • 171
  • 376

About Implementing the copy constructor. in terms of operator=

Source Link
gregseth
  • 13.5k
  • 17
  • 67
  • 96

About copy constructor.

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

MyClass::MyClass(MyClass const &_copy) { *this = _copy; }