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

Section: [util.smartptr.shared.cast] Status: Resolved Submitter: United States Opened: 2017-02-03 Last modified: 2020-09-06 13:52:31 UTC

Priority: Not Prioritized

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

View all issues with Resolved status.


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.