[libcxx-commits] [libcxx] [libc++] Define behaviour for calling target() and target_type() on -fno-rtti std::functions (PR #209471)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jul 14 06:12:02 PDT 2026
================
@@ -316,7 +314,9 @@ class __value_func<_Rp(_ArgTypes...)> {
_LIBCPP_HIDE_FROM_ABI const std::type_info& target_type() const _NOEXCEPT {
if (__f_ == nullptr)
return typeid(void);
- return __f_->target_type();
+ if (auto __ptr = __f_->target_type())
----------------
philnik777 wrote:
Do we want to define this, or should this be an assertion?
https://github.com/llvm/llvm-project/pull/209471
More information about the libcxx-commits
mailing list