Modify

Ticket #6233 (closed Bugs: fixed)

Opened 2 years ago

Last modified 2 years ago

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

Reported by: Kohei Takahashi <flast@…> Owned by: igaztanaga
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

Change History

comment:1 Changed 2 years ago by igaztanaga

  • Status changed from new to closed
  • Resolution set to fixed

Thanks, fixed in SVN trunk

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


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

 
Note: See TracTickets for help on using tickets.