Movatterモバイル変換


[0]ホーム

URL:



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

2877. Strengthen meaning of "emptyshared_ptr<T>" indynamic_pointer_cast

Section: 20.3.2.2.10[util.smartptr.shared.cast]Status:ResolvedSubmitter: United StatesOpened: 2017-02-03Last modified: 2020-09-06

Priority:Not Prioritized

View all otherissues in [util.smartptr.shared.cast].

View all issues withResolved status.

Discussion:

Addresses US 137

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

Proposed change:

Rephrase as:

Otherwise,shared_ptr<T>().

Proposed resolution:

Resolved byP0414R2, which was adopted in Issaquah.


[8]ページ先頭

©2009-2026 Movatter.jp