[libcxx-commits] [libcxxabi] [libc++] [libc++abi] Initialize exception directly in make_exception_ptr if __cxa_init_primary_exception is available in ABI-library (PR #65534)

via libcxx-commits libcxx-commits at lists.llvm.org
Wed Oct 25 15:57:37 PDT 2023


================
@@ -25,6 +36,9 @@ struct exception_ptr
 {
     void* __ptr_;
 
+#  if defined(_LIBCPP_EXCEPTION_PTR_DIRECT_INIT)
+    exception_ptr(void*) noexcept;
----------------
EricWF wrote:

Explicit please.

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


More information about the libcxx-commits mailing list