Thursday, March 21, 2019

c++ - Should/can smart pointers normally be used?


Possible Duplicate:
What is a smart pointer and when should I use one?







I've recently read about smart pointer, such as shared_ptr or auto_ptr. Is it good/bad practice to prefer them over normal pointers?



E.g. should I use them in arguments to functions or when storing pointers as members of a class?

No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...