diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-08-01 18:09:47 +0200 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-09-04 18:42:11 +0200 |
commit | bde38f86337d6f49b34b38016ab088d2f48ec371 (patch) | |
tree | 66971b5864de14bbe17e2b7fa8cbf12adb325bf5 /lib/connection.h | |
parent | 575534e7cca310c6d6195ab16d482bf9dfba755e (diff) | |
download | libquotient-bde38f86337d6f49b34b38016ab088d2f48ec371.tar.gz libquotient-bde38f86337d6f49b34b38016ab088d2f48ec371.zip |
concept EventClass
Constrain types to derive from Event (or the chosen class), where
applicable.
Diffstat (limited to 'lib/connection.h')
-rw-r--r-- | lib/connection.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/connection.h b/lib/connection.h index 66ed8b68..5afcfc2f 100644 --- a/lib/connection.h +++ b/lib/connection.h @@ -189,7 +189,7 @@ public: //! of that type. //! \note Direct chats map cannot be retrieved using this method _yet_; //! use directChats() instead. - template <typename EventT> + template <EventClass EventT> const EventT* accountData() const { return eventCast<EventT>(accountData(EventT::TypeId)); |