Make CallbackManager invocable (#3089)
This commit is contained in:
1 parent
80d03a631e
commit
4e6bdb31ac
1 file changed
+3
@@ -176,6 +176,9 @@ template<typename... Ts> class CallbackManager<void(Ts...)> {
|
||||
cb(args...);
|
||||
}
|
||||
|
||||
/// Call all callbacks in this manager.
|
||||
void operator()(Ts... args) { call(args...); }
|
||||
|
||||
protected:
|
||||
std::vector<std::function<void(Ts...)>> callbacks_;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user