shared_ptr<T>
" in dynamic_pointer_cast
Section: 20.3.2.2.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.