[libcxx-commits] [libcxx] [libc++] fix std::make_exception_ptr interaction with ObjC (PR #135386)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Sat May 17 10:54:13 PDT 2025
================
@@ -94,38 +95,50 @@ 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
- using _Ep2 = __decay_t<_Ep>;
-
- void* __ex = __cxxabiv1::__cxa_allocate_exception(sizeof(_Ep));
+# if _LIBCPP_AVAILABILITY_HAS_INIT_PRIMARY_EXCEPTION && __cplusplus >= 201703L
----------------
philnik777 wrote:
This should really be `_LIBCPP_STD_VER >= 17`. Also, why did this change from C++11 to C++17?
https://github.com/llvm/llvm-project/pull/135386
More information about the libcxx-commits
mailing list