Title
nullptr constructors for smart pointers should be constexpr
Status
c++11
Section
[memory]
Submitter
BSI

Created on 2010-08-25.00:00:00 last changed 162 months ago

Messages

Date: 2011-05-21.21:15:19

Proposed resolution:

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

Date: 2010-10-24.10:50:39

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

Date: 2010-10-24.10:50:39

Addresses GB-100

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

History
Date User Action Args
2011-08-23 20:07:26adminsetstatus: wp -> c++11
2010-10-24 10:50:39adminsetmessages: + msg5018
2010-10-24 10:50:39adminsetstatus: nad editorial -> wp
2010-10-21 19:47:27adminsetmessages: + msg4811
2010-08-25 00:00:00admincreate