[libcxx-commits] [libcxx] [libc++] Applied `[[nodiscard]]` to `<exception>`, `<stdexcept>` and `<system_error>` (PR #170837)
Hristo Hristov via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Dec 6 02:18:01 PST 2025
================
@@ -6,12 +6,15 @@
//
//===----------------------------------------------------------------------===//
-// UNSUPPORTED: c++03
+// ADDITIONAL_COMPILE_FLAGS: -Wno-deprecated
+// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS
----------------
H-G-Hristov wrote:
Since these can be enabled in newer versions, we should probably keep them. In fact the functional tests don't guard on version: libcxx/test/libcxx-03/depr/exception.unexpected/unexpected.pass.cpp
https://github.com/llvm/llvm-project/pull/170837
More information about the libcxx-commits
mailing list