trainings/AdvancedCppV2/Presentation/smart_pointers_auto_ptr.md

572 B
Raw Permalink Blame History

std::auto_ptr<> - something to forget

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