[libcxx-commits] [libcxx] [libc++] Implement LWG4477: placement operator delete should be constexpr (PR #189915)

Fernando Pelliccioni via libcxx-commits libcxx-commits at lists.llvm.org
Tue Apr 7 05:06:00 PDT 2026


================
@@ -27,8 +27,9 @@ operator new(std::size_t, void* __p) _NOEXCEPT {
 operator new[](std::size_t, void* __p) _NOEXCEPT {
   return __p;
 }
-inline _LIBCPP_HIDE_FROM_ABI void operator delete(void*, void*) _NOEXCEPT {}
-inline _LIBCPP_HIDE_FROM_ABI void operator delete[](void*, void*) _NOEXCEPT {}
+// LWG4477 placement operator delete should be constexpr
----------------
fpelliccioni wrote:

Removed the unnecessary comment in the header.
Also, added the tests you suggested.

https://github.com/llvm/llvm-project/pull/189915


More information about the libcxx-commits mailing list