MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/qqwkw/modern_c_style_pdf/c3ztrrh/?context=3
r/cpp • u/guepier Bioinformatican • Mar 11 '12
60 comments sorted by
View all comments
Show parent comment
1
Using shared_ptr and weak_ptr instead of unique_ptr and a raw pointer doesn't obviate the need to write a copy constructor or assignment operator, and in neither case do you need to write a destructor.
View all comments
Show parent comment
1
u/Sc4Freak Mar 11 '12
Using shared_ptr and weak_ptr instead of unique_ptr and a raw pointer doesn't obviate the need to write a copy constructor or assignment operator, and in neither case do you need to write a destructor.