[libcxx-commits] [PATCH] D142842: [libc++] Remove _LIBCPP_ABI_BAD_FUNCTION_CALL_KEY_FUNCTION
Mark de Wever via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Jan 29 09:39:11 PST 2023
Mordante added a comment.
Do you know why we have two key functions, which both require ABI v2?
================
Comment at: libcxx/include/__functional/function.h:53
public:
-// Note that when a key function is not used, every translation unit that uses
-// bad_function_call will end up containing a weak definition of the vtable and
-// typeinfo.
-#ifdef _LIBCPP_ABI_BAD_FUNCTION_CALL_KEY_FUNCTION
- ~bad_function_call() _NOEXCEPT override;
-#else
- ~bad_function_call() _NOEXCEPT override {}
-#endif
+ ~bad_function_call() _NOEXCEPT override = default;
----------------
Why is this still needed?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142842/new/
https://reviews.llvm.org/D142842
More information about the libcxx-commits
mailing list