This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of C++11 status.
1402.nullptr
constructors for smart pointers should be constexpr
Section: 20.2 [memory] Status: C++11 Submitter: BSI Opened: 2010-08-25 Last modified: 2016-01-28
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 20.3.1.3 [unique.ptr.single] synopsis add "constexpr" to unique_ptr(nullptr_t)
.
In the 20.3.1.4 [unique.ptr.runtime] synopsis add "constexpr" to unique_ptr(nullptr_t)
.
In the 20.3.2.2 [util.smartptr.shared] synopsis add "constexpr" to shared_ptr(nullptr_t)
.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4