diff --git a/ostd/signal.hh b/ostd/signal.hh index d54a52d..b49ed3a 100644 --- a/ostd/signal.hh +++ b/ostd/signal.hh @@ -63,14 +63,14 @@ struct Event { } template - void emit(Args &&...args) { + void emit(Args &&...args) const { if (!p_class) return; for (Size i = 0; i < p_nfuncs; ++i) if (p_funcs[i]) p_funcs[i](*p_class, args...); } template - void operator()(Args &&...args) { + void operator()(Args &&...args) const { emit(forward(args)...); }