FunctionGroup: fix incorrect parameter for operator()

This commit is contained in:
Maxime Coste 2014-01-17 13:13:08 +00:00
parent 997aadd33f
commit 79c6d609c9

View File

@ -15,7 +15,7 @@ public:
using Function = std::function<void (Args...)>; using Function = std::function<void (Args...)>;
using FunctionAndId = std::pair<String, std::function<void (Args...)>>; using FunctionAndId = std::pair<String, std::function<void (Args...)>>;
void operator()(Args&&... args) void operator()(Args... args)
{ {
for (auto& func : m_functions) for (auto& func : m_functions)
func.second(std::forward<Args>(args)...); func.second(std::forward<Args>(args)...);