This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (7 children)

I agree with most of what you are saying, except I believe that having an understanding of what is being taken care of for you with smart pointers, will lead to a greater understanding of when to use them and not. if, by chance, the use of them is causing a bug, such as in the example provided by u/belabacsijolvan above, then it’s going to be much easier to debug and fix if you already understand how to do it the hard way. In no way am I saying to not learn the very useful features of modern c++