Assignment no longer copy-constructs classes; it always acts like copying or assigning a pointer. Actual class assignment must be implemented by renaming operator=. This way, assignment behavior remains the same irrespective of whether the class is wrapped as a smart pointer.
Assignment no longer copy-constructs classes; it always acts like copying or assigning a pointer. Actual class assignment must be implemented by renaming
operator=
. This way, assignment behavior remains the same irrespective of whether the class is wrapped as a smart pointer.