diff options
author | crupest <crupest@outlook.com> | 2021-09-14 22:10:02 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-09-14 22:10:02 +0800 |
commit | 46d4838ac8ff1bd8658b57cf4ebb4438e396fce8 (patch) | |
tree | f1e04c19630c7f42ad57618e9a2d7cf5ea4d31c1 /include/cru/common/HandlerRegistry.hpp | |
parent | 9bc202a2e1664df3e3c148abfe90a90501bc1650 (diff) | |
download | cru-46d4838ac8ff1bd8658b57cf4ebb4438e396fce8.tar.gz cru-46d4838ac8ff1bd8658b57cf4ebb4438e396fce8.tar.bz2 cru-46d4838ac8ff1bd8658b57cf4ebb4438e396fce8.zip |
...
Diffstat (limited to 'include/cru/common/HandlerRegistry.hpp')
-rw-r--r-- | include/cru/common/HandlerRegistry.hpp | 1 |
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) { |