What's the difference between shared_ptr and auto_ptr in C++? | Sololearn: Learn to code for FREE!

0

What's the difference between shared_ptr and auto_ptr in C++?

C++ memory management

10/17/2017 8:33:52 PM

Imed Benromdhane

1 Answer

New Answer

0

auto_ptr were used before c++11, shared_ptr and unique_ptr should be used instead http://www.cplusplus.com/reference/memory/auto_ptr/