[libcxx-commits] [libcxx] f638f7b - [libc++] Update with LWG issue number for shared-ptr constructor
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jun 11 13:48:42 PDT 2024
Author: Louis Dionne
Date: 2024-06-11T16:48:35-04:00
New Revision: f638f7b6a7c22bc802bb9620acfa10a00d4217cf
URL: https://github.com/llvm/llvm-project/commit/f638f7b6a7c22bc802bb9620acfa10a00d4217cf
DIFF: https://github.com/llvm/llvm-project/commit/f638f7b6a7c22bc802bb9620acfa10a00d4217cf.diff
LOG: [libc++] Update with LWG issue number for shared-ptr constructor
Added:
Modified:
libcxx/docs/Status/Cxx2cIssues.csv
libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/pointer_deleter.pass.cpp
libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/pointer_deleter_allocator.pass.cpp
Removed:
################################################################################
diff --git a/libcxx/docs/Status/Cxx2cIssues.csv b/libcxx/docs/Status/Cxx2cIssues.csv
index 8d24457186310..28359b7bb49ac 100644
--- a/libcxx/docs/Status/Cxx2cIssues.csv
+++ b/libcxx/docs/Status/Cxx2cIssues.csv
@@ -65,4 +65,5 @@
"`3343 <https://wg21.link/LWG3343>`__","Ordering of calls to ``unlock()`` and ``notify_all()`` in Effects element of ``notify_all_at_thread_exit()`` should be reversed","Not Yet Adopted","|Complete|","16.0",""
"XXXX","","The sys_info range should be affected by save","Not Yet Adopted","|Complete|","19.0"
"`4071 <https://wg21.link/LWG4071>`__","","``reference_wrapper`` comparisons are not SFINAE-friendly","Not Yet Adopted","|Complete|","19.0"
+"`4110 <https://wg21.link/LWG4110>`__","","``shared_ptr(nullptr_t, Deleter)`` is overconstrained, breaking some sensible deleters","Not Yet Adopted","|Complete|","19.0"
"","","","","",""
diff --git a/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/pointer_deleter.pass.cpp b/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/pointer_deleter.pass.cpp
index 97dd2fcb22d1a..95dcb92b51993 100644
--- a/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/pointer_deleter.pass.cpp
+++ b/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/pointer_deleter.pass.cpp
@@ -117,7 +117,7 @@ int main(int, char**)
#if TEST_STD_VER >= 14
{
- // See https://github.com/llvm/llvm-project/pull/93071#issuecomment-2158494851
+ // LWG 4110
auto deleter = [](auto pointer) { delete pointer; };
std::shared_ptr<int> p(new int, deleter);
}
diff --git a/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/pointer_deleter_allocator.pass.cpp b/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/pointer_deleter_allocator.pass.cpp
index b90c69efd94ab..89e7d0b02d421 100644
--- a/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/pointer_deleter_allocator.pass.cpp
+++ b/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/pointer_deleter_allocator.pass.cpp
@@ -167,7 +167,7 @@ int main(int, char**)
#if TEST_STD_VER >= 14
{
- // See https://github.com/llvm/llvm-project/pull/93071#issuecomment-2158494851
+ // LWG 4110
auto deleter = [](auto pointer) { delete pointer; };
std::shared_ptr<int> p(new int, deleter, std::allocator<int>());
}
More information about the libcxx-commits
mailing list