Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 4
    auto_ptrs are deprecated; use shared_ptr or unique_ptr instead. Commented Apr 12, 2017 at 18:08
  • Just going to add this in here... I've been using c++ for years, albeit not professionally with c++... I've determined to try not using smart pointers anymore, they're just an absolute mess imo and cause all sorts of problems, not really helping to speed up the code much either. I'd so much rather just copy data around and manage pointers myself, using RAII. So I advise that if you can, avoid smart pointers. Commented Apr 21, 2018 at 5:04