diff options
Diffstat (limited to 'lib/events')
-rw-r--r-- | lib/events/event.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/events/event.h b/lib/events/event.h index a966e613..05eb51e9 100644 --- a/lib/events/event.h +++ b/lib/events/event.h @@ -344,7 +344,7 @@ inline auto eventCast(const BasePtrT& eptr) namespace _impl { template <typename FnT, class BaseT> concept Invocable_With_Downcast = - std::derived_from<std::remove_cvref_t<fn_arg_t<FnT>>, BaseT>; + std::is_base_of_v<BaseT, std::remove_cvref_t<fn_arg_t<FnT>>>; } template <class BaseT, typename TailT> |