2877. Strengthen meaning of "empty shared_ptr<T>" in dynamic_pointer_cast

Section: 23.11.3.9 [util.smartptr.shared.cast] Status: Resolved Submitter: United States Opened: 2017-02-03 Last modified: 2017-02-21

Priority: Not Prioritized

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

View all issues with Resolved status.

Discussion:

Addresses US 137

Paragraph (6.2): It is intuitive, but not specified, that the empty pointer returned by a dynamic_pointer_cast should point to null.

Proposed change:

Rephrase as:

Otherwise, shared_ptr<T>().

Proposed resolution:

Resolved by P0414R2, which was adopted in Issaquah.