[libcxx-commits] [libcxx] [libc++] Deprecate non-standard std::launch::any extension (PR #173397)

via libcxx-commits libcxx-commits at lists.llvm.org
Wed Dec 24 02:02:37 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};
----------------
sohail103 wrote:

Done, thanks for the suggestion. I've updated the deprecation message to include the alternative and the removal version.

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


More information about the libcxx-commits mailing list