Opened 11 years ago
Closed 11 years ago
#6233 closed Bugs (fixed)
scoped_ptr::reset(p, d) does not construct with deleter
Reported by: | Owned by: | Ion Gaztañaga | |
---|---|---|---|
Milestone: | To Be Determined | Component: | interprocess |
Version: | Boost 1.48.0 | Severity: | Problem |
Keywords: | Cc: |
Description
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); }
Note:
See TracTickets
for help on using tickets.
Thanks, fixed in SVN trunk