Title
Adjusting shared_ptr for nullptr_t
Status
c++11
Section
[util.smartptr.shared.dest]
Submitter
Peter Dimov

Created on 2008-09-18.00:00:00 last changed 161 months ago

Messages

Date: 2011-04-30.23:09:42

Proposed resolution:

Change [util.smartptr.shared.dest] p1 second bullet:

  • ...
  • Otherwise, if *this owns a pointer an object p and a deleter d, d(p) is called.
Date: 2010-10-21.18:28:33

[ Batavia (2009-05): ]

Peter Dimov notes the analogous change has already been made to "the new nullptr_t taking constructors in [util.smartptr.shared.const] p9-13."

We agree with the proposed resolution. Move to Tentatively Ready.

Date: 2010-10-21.18:28:33

[ Post Summit: ]

Recommend Review.

Date: 2008-09-18.00:00:00

James Dennett, message c++std-lib-22442:

The wording below addresses one case of this, but opening an issue to address the need to sanity check uses of the term "pointer" in [util.smartptr.shared] would be a good thing.

There's one more reference, in ~shared_ptr; we can apply your suggested change to it, too. That is:

Change [util.smartptr.shared.dest]/1 second bullet from:

Otherwise, if *this owns a pointer p and a deleter d, d(p) is called.

to:

Otherwise, if *this owns an object p and a deleter d, d(p) is called.

History
Date User Action Args
2011-08-23 20:07:26adminsetstatus: wp -> c++11
2010-10-21 18:28:33adminsetmessages: + msg4279
2010-10-21 18:28:33adminsetmessages: + msg4278
2010-10-21 18:28:33adminsetmessages: + msg4277
2008-09-18 00:00:00admincreate