effective c++
Item-12 Copy all parts of an object
· β 3 min read
Item-11 Handle self assignment in operator=
· β 4 min read
Solve self assignment situation in operator= by comparing addresses of source and target objects, careful statement ordering, and copy-and-swap
.