aboutsummaryrefslogtreecommitdiff
path: root/include/cru/common/HandlerRegistry.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/common/HandlerRegistry.hpp')
-rw-r--r--include/cru/common/HandlerRegistry.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/cru/common/HandlerRegistry.hpp b/include/cru/common/HandlerRegistry.hpp
index bd74a9e0..0af97968 100644
--- a/include/cru/common/HandlerRegistry.hpp
+++ b/include/cru/common/HandlerRegistry.hpp
@@ -59,6 +59,7 @@ class HandlerRegistry final {
int AddHandler(std::function<T> handler) {
auto id = current_id_++;
handler_list_.push_back({id, std::move(handler)});
+ return id;
}
void RemoveHandler(int id) {