[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:15 PST 2025
================
@@ -25,19 +25,19 @@
int main(int, char**)
{
#if TEST_STD_VER < 11
- LIBCPP_STATIC_ASSERT(static_cast<int>(std::launch::any) ==
+ LIBCPP_STATIC_ASSERT(static_cast<int>(std::launch::any) == // expected-warning {{'any' is deprecated}}
----------------
frederick-vs-ja wrote:
Lines mentioning `launch::any` should be moved to `libcxx/test/libcxx/thread/futures/launch_any_deprecated.verify.cpp`. Note that tests in the `libcxx/test/std` directory should test standard features and requirements.
https://github.com/llvm/llvm-project/pull/173397
More information about the libcxx-commits
mailing list