aboutsummaryrefslogtreecommitdiff
path: root/lib/events
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-07-07 18:32:48 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-07-07 18:33:23 +0200
commit64948b6840032b04ef00bfe207baa29dd445d141 (patch)
tree50dbee36f11182f311af5b0adb0102121e858bad /lib/events
parentbc8e01df4286f5f8ff9103fbebad801f355db689 (diff)
downloadlibquotient-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')
-rw-r--r--lib/events/event.h2
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>