Boost C++ Libraries: Ticket #1913: Null deleter for shared_ptr https://svn.boost.org/trac10/ticket/1913 <p> As raised in this (<a class="ext-link" href="http://article.gmane.org/gmane.comp.lib.boost.user/35693"><span class="icon">​</span>http://article.gmane.org/gmane.comp.lib.boost.user/35693</a>) message on the boost-users mailing list, it would be very nice if the smart pointer library contained a null deleter object so it could be used for stack/static objects. To save the user having to define their own. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1913 Trac 1.4.3 Peter Dimov Thu, 21 Aug 2008 15:25:42 GMT status, milestone changed https://svn.boost.org/trac10/ticket/1913#comment:1 https://svn.boost.org/trac10/ticket/1913#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.36.0</span> → <span class="trac-field-new">Boost 1.37.0</span> </li> </ul> Ticket Peter Dimov Sat, 28 Feb 2009 17:03:48 GMT milestone changed https://svn.boost.org/trac10/ticket/1913#comment:2 https://svn.boost.org/trac10/ticket/1913#comment:2 <ul> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.37.0</span> → <span class="trac-field-new">To Be Determined</span> </li> </ul> Ticket Peter Dimov Thu, 24 Feb 2011 22:12:51 GMT status changed https://svn.boost.org/trac10/ticket/1913#comment:3 https://svn.boost.org/trac10/ticket/1913#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">new</span> </li> </ul> Ticket cashcow_2@… Tue, 08 Mar 2011 13:25:32 GMT <link>https://svn.boost.org/trac10/ticket/1913#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1913#comment:4</guid> <description> <p> This ticket is raised against version 1.35.0 At least in 1.42 there is one hidden away in boost::serialization. It is difficult to know though why it is there: </p> <p> #include &lt;boost/serialization/shared_ptr.hpp&gt; </p> <p> class Foo </p> <p> { </p> <blockquote> <p> int x; </p> </blockquote> <p> }; </p> <p> Foo foo; boost::shared_ptr&lt;Foo&gt; sharedfoo( &amp;foo, boost::serialization::null_deleter() ); </p> </description> <category>Ticket</category> </item> <item> <author>Carsten Neumann <carsten_neumann@…></author> <pubDate>Wed, 10 Oct 2012 20:02:28 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/1913 https://svn.boost.org/trac10/ticket/1913 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">PATCH.null_deleter.diff</span> </li> </ul> <p> makes null_deleter available from boost/smart_ptr/null_deleter.hpp, minimal docs &amp; test case </p> Ticket