Synopsis: | Don't use auto_ptr, use unique_ptr instead |
Language: | C++ |
Severity Level: | 2 |
Category: | Object Allocation |
Description: |
auto_ptr is deprecated as of C++11. Instead, unique_ptr should be used. It has similar functionality, but improved security (no fake copy assignments), added features (deleters) and support for arrays. |