Re: [Boost-bugs] [Boost C++ Libraries] #10798: boost::movelib::unique_ptr resolves typedef pointer with the deletor's

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10798: boost::movelib::unique_ptr resolves typedef pointer with the deletor's
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-11-24 21:30:14


#10798: boost::movelib::unique_ptr resolves typedef pointer with the deletor's
-------------------------------------------------+-------------------------
  Reporter: Matteo Settenvini | Owner: igaztanaga
  <matteo.settenvini@…> | Status: new
      Type: Bugs | Component: move
 Milestone: To Be Determined | Severity: Problem
   Version: Boost 1.57.0 | Keywords:
Resolution: |
-------------------------------------------------+-------------------------

Comment (by igaztanaga):

 boost::interprocess:unique_ptr was never designed for this use case, at
 least, not on purpose. It was designed to be nearly-standard compatible
 and compatible with managed_unique_ptr, which defines a deleter with a
 pointer typedef, defining a smart pointer to the element_type. Couldn't a
 new unique_ptrdeleter that derives from your deleter and defines pointer
 to be a pointer to T, solve the issue?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10798#comment:1>
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:17 UTC