[libcxx-commits] [libcxx] [libc++] Deprecate the C++20 synchronization library before C++20 (PR #86410)

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Fri Apr 12 08:44:32 PDT 2024


================
@@ -55,6 +55,10 @@ Improvements and New Features
 Deprecations and Removals
 -------------------------
 
+- The C++20 synchronization library (``<barrier>``, ``<latch>``, ``atomic::wait``, etc.) has been deprecated
+  in language modes prior to C++20. If you are using these features prior to C++20, please update to ``-std=c++20``.
+  In LLVM 20, the C++20 synchronization library will be removed entirely in language modes prior to C++20.
----------------
mordante wrote:

I checked and it indeed seems we use a shorter deprecation (nowadays?). So I'm oke to keep this as is.

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


More information about the libcxx-commits mailing list