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.cpp | |
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.cpp')
-rw-r--r-- | lib/connection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp index a33ace51..d9268028 100644 --- a/lib/connection.cpp +++ b/lib/connection.cpp @@ -188,7 +188,7 @@ public: emit q->accountDataChanged(eventType); } - template <typename EventT, typename ContentT> + template <EventClass EventT, typename ContentT> void packAndSendAccountData(ContentT&& content) { packAndSendAccountData( |