[libcxx-commits] [libcxx] [libc++] Deprecate non-standard std::launch::any extension (PR #173397)
A. Jiang via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Dec 23 17:21:16 PST 2025
================
@@ -434,7 +434,7 @@ struct is_error_code_enum<future_errc::__lx> : public true_type {};
# endif
// enum class launch
-_LIBCPP_DECLARE_STRONG_ENUM(launch){async = 1, deferred = 2, any = async | deferred};
+_LIBCPP_DECLARE_STRONG_ENUM(launch){async = 1, deferred = 2, any _LIBCPP_DEPRECATED = async | deferred};
----------------
frederick-vs-ja wrote:
No change requested for this line.
Let's also add an entry to `libcxx/docs/ReleaseNotes/22.rst` (under the Deprecations and Removals section), like:
```rst
- Non-conforming extension ``launch::any`` is deprecated. It will be removed in LLVM 23.
```
https://github.com/llvm/llvm-project/pull/173397
More information about the libcxx-commits
mailing list