[Boost-bugs] [Boost C++ Libraries] #6233: scoped_ptr::reset(p, d) does not construct with deleter

Subject: [Boost-bugs] [Boost C++ Libraries] #6233: scoped_ptr::reset(p, d) does not construct with deleter
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-12-07 02:36:49


#6233: scoped_ptr::reset(p, d) does not construct with deleter
----------------------------------------------+-----------------------------
 Reporter: Kohei Takahashi <flast@…> | Owner: igaztanaga
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: interprocess
  Version: Boost 1.48.0 | Severity: Problem
 Keywords: |
----------------------------------------------+-----------------------------
 The scoped_ptr::reset is here.


 {{{
 void reset(const pointer &p, const Deleter &d) // never throws
 { BOOST_ASSERT(p == 0 || p != m_ptr); this_type(p).swap(*this); }
 }}}


 But I think it should be this.


 {{{
 void reset(const pointer &p, const Deleter &d) // never throws
 { BOOST_ASSERT(p == 0 || p != m_ptr); this_type(p, d).swap(*this); }
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6233>
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:08 UTC