Opened 11 years ago

Closed 11 years ago

#6233 closed Bugs (fixed)

scoped_ptr::reset(p, d) does not construct with deleter

Reported by: Kohei Takahashi <flast@…> 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);  }

Change History (1)

comment:1 by Ion Gaztañaga, 11 years ago

Resolution: fixed
Status: newclosed

Thanks, fixed in SVN trunk

Note: See TracTickets for help on using tickets.