1407. Synch shared_ptr constructors taking movable types

Section: 23.11.3.1 [util.smartptr.shared.const] Status: Resolved Submitter: INCITS Opened: 2010-08-25 Last modified: 2016-02-10

Priority: Not Prioritized

View all other issues in [util.smartptr.shared.const].

View all issues with Resolved status.

Discussion:

Addresses US-108

shared_ptr should have the same policy for constructing from auto_ptr as unique_ptr. Currently it does not.

[ Resolved in Rapperswil by paper N3109. ]

Proposed resolution:

Add

template <class Y> explicit shared_ptr(auto_ptr<Y>&); 

to [util.smartptr.shared.const] (and to the synopsis).