This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of Resolved status.

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

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

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.