diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-07-07 18:32:48 +0200 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-07-07 18:33:23 +0200 |
commit | 64948b6840032b04ef00bfe207baa29dd445d141 (patch) | |
tree | 50dbee36f11182f311af5b0adb0102121e858bad /lib/events/event.h | |
parent | bc8e01df4286f5f8ff9103fbebad801f355db689 (diff) | |
download | libquotient-64948b6840032b04ef00bfe207baa29dd445d141.tar.gz libquotient-64948b6840032b04ef00bfe207baa29dd445d141.zip |
Avoid std::derived_from and std::bind_front
Apple Clang doesn't have those yet.
Diffstat (limited to 'lib/events/event.h')
-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> |