Talk:C++ Programming/Operators/Pointers/Smart Pointers

Multiple kinds of smart pointers
A "smart pointer" is a general term that can be used for multiple types of classes: e.g. std::auto_ptr<>, std::shared_ptr<>, std::weak_ptr<>, etc. This page should likely try to clarify that a "smart pointer" is not necessarily be an auto_ptr<>. Instead give a more general definition of smart pointer, and clarify that auto_ptr<> is one type of smart pointer.

--Autumnfields (talk) 11:27, 30 November 2010 (UTC)

Duplication of content
We're in danger of duplicating content between this page and C++ Programming/Me1mory Management Techniques. --Fishpi (talk) 07:58, 25 July 2010 (UTC)


 * That page is an orphan, it is to be merged where relevant (that it stated in the C++ Programming/Editor's TOC). How are you navigating the book ? By categories or did you do a search ?  --Panic (talk) 08:41, 25 July 2010 (UTC)


 * I came across it on the list of unreviewed pages, since I'm trying to make sure all pages in the book get reviewed. I'll look at merging the content in elsewhere and deleting the page. --Fishpi (talk) 14:48, 25 July 2010 (UTC)


 * Not a delete, select the page that you copied most of the content and tag it with a requests for history merge.
 * Reviewing pages has other issues, since the changes recently approved aren't yet in place, any reviewed pages will lock any future edit until someone reviews it again, my experience (and what prompted the changes) is that it disincentives new contributors. --Panic (talk) 20:33, 25 July 2010 (UTC)

Outdated information
Since C++11 auto_ptr is deprecated and should no longer be used. Instead of auto_ptr you should use the new smart pointers: unique_ptr, weak_ptr and shared_ptr. unique_ptr should now be preferred as replacement for auto_ptr. --AndiixAndii (discuss • contribs) 15:41, 24 June 2015 (UTC)