aboutsummaryrefslogtreecommitdiff
path: root/include/cru/common
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-08-11 01:09:49 +0800
committer杨宇千 <crupest@outlook.com>2019-08-11 01:09:49 +0800
commit0e35b2c022599bca2df61488945f07e4d6b4eb35 (patch)
tree71daef6f9725a250b9fcaf97fdecc9bdf46bd6e3 /include/cru/common
parent9eed31954c14f2d60c906adb5b49b58fbee4ff7f (diff)
downloadcru-0e35b2c022599bca2df61488945f07e4d6b4eb35.tar.gz
cru-0e35b2c022599bca2df61488945f07e4d6b4eb35.tar.bz2
cru-0e35b2c022599bca2df61488945f07e4d6b4eb35.zip
...
Diffstat (limited to 'include/cru/common')
-rw-r--r--include/cru/common/event.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/cru/common/event.hpp b/include/cru/common/event.hpp
index 50918dd0..12c0d0cd 100644
--- a/include/cru/common/event.hpp
+++ b/include/cru/common/event.hpp
@@ -148,7 +148,7 @@ class Event : public details::EventBase, public IEvent<TEventArgs> {
// Thanks to this behavior, all handlers will be taken a snapshot when Raise
// is called, so even if you delete a handler during this period, all handlers
// in the snapshot will be executed.
- void Raise(EventArgs args) {
+ void Raise(typename IEvent<TEventArgs>::EventArgs args) {
std::forward_list<EventHandler> handlers;
auto iter = handlers.cbefore_begin();
for (const auto& data : this->handler_data_list_) {