Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 575 Bytes

smart_pointers_auto_ptr.md

File metadata and controls

10 lines (8 loc) · 575 Bytes

std::auto_ptr<> - something to forget

  • C++98 provided std::auto_ptr<>
  • Few fixes in C++03
  • Yet still it’s easy to use incorrectly…
  • Deprecated since C++11
  • Removed since C++17
  • Do not use it, use std::unique_ptr<> instead