aboutsummaryrefslogtreecommitdiff
path: root/lib/connection.cpp
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-08-01 18:09:47 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-09-04 18:42:11 +0200
commitbde38f86337d6f49b34b38016ab088d2f48ec371 (patch)
tree66971b5864de14bbe17e2b7fa8cbf12adb325bf5 /lib/connection.cpp
parent575534e7cca310c6d6195ab16d482bf9dfba755e (diff)
downloadlibquotient-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.cpp2
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(