[libcxx-commits] [libcxx] [libc++] Inline fast path for`exception_ptr` copy constructor & destructor (PR #165909)

Adrian Vogelsgesang via libcxx-commits libcxx-commits at lists.llvm.org
Mon Nov 10 07:58:50 PST 2025


================
@@ -11,22 +11,32 @@
 
 namespace std {
 
-exception_ptr::~exception_ptr() noexcept {
+void exception_ptr::__increment_refcount([[__gnu__::__nonnull__]] _LIBCPP_NOESCAPE void* __ptr) noexcept {
+  #warning exception_ptr not yet implemented
----------------
vogelsgesang wrote:

I agree, I also think those repeated warnings are weird.

I could imagine that when those `#warnings` were originally added, the goal was that you would still get the warning even if you replaced half of the implementations with actual implementations.

I replaced all warnings by a single warning now

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


More information about the libcxx-commits mailing list