Skip to content

Commit 21e6f16

Browse files
committed
[libc++] Mark N4089 as complete
The paper has been implemented since at least LLVM 5, maybe earlier.
1 parent 86fa35c commit 21e6f16

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

libcxx/docs/Status/Cxx17Papers.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"Paper #","Paper Name","Meeting","Status","First released version","Notes"
22
"`N3911 <https://wg21.link/N3911>`__","TransformationTrait Alias ``void_t``\ .","2014-11 (Urbana)","|Complete|","3.6",""
3-
"`N4089 <https://wg21.link/N4089>`__","Safe conversions in ``unique_ptr<T[]>``\ .","2014-11 (Urbana)","|In Progress|","3.9",""
3+
"`N4089 <https://wg21.link/N4089>`__","Safe conversions in ``unique_ptr<T[]>``\ .","2014-11 (Urbana)","|Complete|","5",""
44
"`N4169 <https://wg21.link/N4169>`__","A proposal to add invoke function template","2014-11 (Urbana)","|Complete|","3.7",""
55
"`N4190 <https://wg21.link/N4190>`__","Removing auto_ptr, random_shuffle(), And Old <functional> Stuff.","2014-11 (Urbana)","|Complete|","15",""
66
"`N4258 <https://wg21.link/N4258>`__","Cleaning-up noexcept in the Library.","2014-11 (Urbana)","|In Progress|","3.7",""

libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.asgn/move_convert.runtime.pass.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,12 @@ void test_sfinae() {
103103
using UA2 = std::unique_ptr<A[], const DAC&>;
104104
static_assert(!std::is_assignable<UA1, UA2&&>::value, "");
105105
}
106+
{ // cannot move-convert with reference deleters with different qualifiers
107+
using UA1 = std::unique_ptr<A[], DA&>;
108+
using UA2 = std::unique_ptr<A[], const DA&>;
109+
static_assert(!std::is_assignable<UA1, UA2&&>::value, "");
110+
static_assert(!std::is_assignable<UA2, UA1&&>::value, "");
111+
}
106112
{ // cannot move-convert from unique_ptr<Single>
107113
using UA1 = std::unique_ptr<A[]>;
108114
using UA2 = std::unique_ptr<A>;

0 commit comments

Comments
 (0)