Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1913: Null deleter for shared_ptr
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-03-08 13:25:32
#1913: Null deleter for shared_ptr
----------------------------------------------+-----------------------------
Reporter: Kevin Martin <kev82@â¦> | Owner: pdimov
Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: smart_ptr
Version: Boost 1.35.0 | Severity: Cosmetic
Resolution: | Keywords: smart_ptr null deleter
----------------------------------------------+-----------------------------
Comment (by cashcow_2@â¦):
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:
#include <boost/serialization/shared_ptr.hpp>
class Foo
{
int x;
};
Foo foo;
boost::shared_ptr<Foo> sharedfoo( &foo,
boost::serialization::null_deleter() );
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/1913#comment:4> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:05 UTC