From b22baaf5fd2e6785da11a22f060b824560aec157 Mon Sep 17 00:00:00 2001 From: q66 Date: Thu, 16 Jul 2015 01:42:35 +0100 Subject: [PATCH] const for emit --- ostd/signal.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)...); }