[libcxx-commits] [libcxx] [libc++] Fix the behavior of throwing `operator new` under -fno-exceptions (PR #69498)
Reid Kleckner via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Oct 18 16:16:00 PDT 2023
================
@@ -214,15 +215,15 @@ inline constexpr destroying_delete_t destroying_delete{};
#if !defined(_LIBCPP_ABI_VCRUNTIME)
-_LIBCPP_NODISCARD_AFTER_CXX17 _LIBCPP_OVERRIDABLE_FUNC_VIS void* operator new(std::size_t __sz) _THROW_BAD_ALLOC;
+_LIBCPP_NODISCARD_AFTER_CXX17 _LIBCPP_OVERRIDABLE_FUNC_VIS _LIBCPP_MAKE_OVERRIDABLE_FUNCTION_DETECTABLE void* operator new(std::size_t __sz) _THROW_BAD_ALLOC;
----------------
rnk wrote:
Can we hide the details of the section from the public header? I think you can override the section on the definition in the cpp file.
https://github.com/llvm/llvm-project/pull/69498
More information about the libcxx-commits
mailing list