Switching to hardcoded callback functions. Selection tools are working with callbacks
This commit is contained in:
parent
109fd96b67
commit
eac8610456
17 changed files with 486 additions and 429 deletions
|
|
@ -18,9 +18,13 @@ template <typename... Args> class CallbackManager {
|
|||
for(auto& f : funcs)
|
||||
(*f)(a...);
|
||||
}
|
||||
~CallbackManager() {
|
||||
void clear() {
|
||||
for(Callback* c : funcs)
|
||||
delete c;
|
||||
funcs.clear();
|
||||
}
|
||||
~CallbackManager() {
|
||||
clear();
|
||||
}
|
||||
private:
|
||||
std::vector<Callback*> funcs;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue