[libcxx-commits] [libcxx] [libcxxabi] [libcxx] Use alias for detecting overriden function (PR #114961)
Petr Hosek via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Nov 6 13:06:57 PST 2024
================
@@ -54,7 +54,7 @@ _LIBCPP_WEAK void* operator new(size_t size, const std::nothrow_t&) noexcept {
# ifdef _LIBCPP_HAS_NO_EXCEPTIONS
# if _LIBCPP_CAN_DETECT_OVERRIDDEN_FUNCTION
_LIBCPP_ASSERT_SHIM(
- !std::__is_function_overridden(static_cast<void* (*)(std::size_t)>(&operator new)),
+ !std::__is_function_overridden<std::__overload_of<void* (std::size_t)>(&operator new)>(),
----------------
petrhosek wrote:
Thanks, I made this change and Clang seems to be happy with it.
https://github.com/llvm/llvm-project/pull/114961
More information about the libcxx-commits
mailing list