[libcxx-commits] [libcxx] [libc++] Deprecate and remove `uncaught_exception` (PR #101830)

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Sun Aug 4 03:50:59 PDT 2024


================
@@ -21,6 +21,5 @@ export namespace std {
   using std::terminate;
   using std::terminate_handler;
   using std::throw_with_nested;
-  using std::uncaught_exception;
----------------
mordante wrote:

This should be
```
#ifdef _LIBCPP_ENABLE_CXX20_REMOVED_UNCAUGHT_EXCEPTION
  using std::uncaught_exception;
#endif
```
instead of an unconditional remove.

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


More information about the libcxx-commits mailing list