[libcxx-commits] [libcxx] [libc++] Deprecated `shared_ptr` Atomic Access APIs as per P0718R2 & Implemented P2869R3: Remove Deprecated `shared_ptr` Atomic Access APIs from C++26 (PR #87111)

Nico Weber via libcxx-commits libcxx-commits at lists.llvm.org
Tue May 14 09:12:16 PDT 2024


nico wrote:

As mentioned before, it'd be very useful to have opt-out flags for deprecations.

https://github.com/llvm/llvm-project/pull/80542#issuecomment-2045532450 claims that "deprecation warnings are introduced in newer standards only", but in our experience that just isn't true (and isn't true here). The MSVC STL does have an opt-out macro per deprecated thing. (@ldionne)

We're once again in the situation that we can't update libc++ before cleaning up this (and possibly other) deprecation warnings. It would be considerably easier if we could update (with a define to disable this deprecation warning) and the fix the warning asynchronously.

(I didn't notice this earlier because it took us 5 weeks to fix the last thing that we couldn't fix asynchronously.)

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


More information about the libcxx-commits mailing list