[libcxx-commits] [libcxx] [libc++] Fix std::make_exception_ptr interaction with ObjC (PR #135386)
James Y Knight via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Jul 2 06:33:27 PDT 2025
================
@@ -92,24 +93,18 @@ class _LIBCPP_EXPORTED_FROM_ABI exception_ptr {
};
template <class _Ep>
-_LIBCPP_HIDE_FROM_ABI exception_ptr make_exception_ptr(_Ep __e) _NOEXCEPT {
-# if _LIBCPP_HAS_EXCEPTIONS
-# if _LIBCPP_AVAILABILITY_HAS_INIT_PRIMARY_EXCEPTION && __cplusplus >= 201103L
+_LIBCPP_HIDE_FROM_ABI exception_ptr __make_exception_ptr_explicit(_Ep& __e) _NOEXCEPT {
----------------
jyknight wrote:
Probably both these new helper functions need to be guarded by `#if _LIBCPP_HAS_EXCEPTIONS`; at the least the one with throw/catch needs to be since that doesn't compile without exceptions enabled.
https://github.com/llvm/llvm-project/pull/135386
More information about the libcxx-commits
mailing list