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

via libcxx-commits libcxx-commits at lists.llvm.org
Tue Dec 23 22:15:01 PST 2025


================
@@ -19,4 +19,5 @@
 void test() {
   std::async([]() {});                   // expected-warning {{ignoring return value of function declared with 'nodiscard' attribute}}
   std::async(std::launch::any, []() {}); // expected-warning {{ignoring return value of function declared with 'nodiscard' attribute}}
----------------
sohail103 wrote:

Changed as suggested.

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


More information about the libcxx-commits mailing list