1402. nullptr constructors for smart pointers should be constexpr

Section: 23.10 [memory] Status: C++11 Submitter: BSI Opened: 2010-08-25 Last modified: 2016-02-10

Priority: Not Prioritized

View all other issues in [memory].

View all issues with C++11 status.

Discussion:

Addresses GB-100

The unique_ptr and shared_ptr constructors taking nullptr_t delegate to a constexpr constructor, and could be constexpr themselves.

[ Resolved in Rapperswil by a motion to directly apply the words from the ballot comment in N3102. ]

Proposed resolution:

In the 23.11.1.2 [unique.ptr.single] synopsis add "constexpr" to unique_ptr(nullptr_t).
In the 23.11.1.3 [unique.ptr.runtime] synopsis add "constexpr" to unique_ptr(nullptr_t).
In the 23.11.3 [util.smartptr.shared] synopsis add "constexpr" to shared_ptr(nullptr_t).