Modify

Opened 6 years ago

Closed 6 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);  }

Attachments (0)

Change History (1)

comment:1 Changed 6 years ago by Ion Gaztañaga

Resolution: fixed
Status: newclosed

Thanks, fixed in SVN trunk

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ion Gaztañaga.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.