We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ee06ce commit 1f7d708Copy full SHA for 1f7d708
1 file changed
modules/Execution/EventQueue.mpp
@@ -39,10 +39,8 @@ export namespace CppUtils::Execution
39
template<class... Args>
40
inline auto emit(String::Hash eventName, Args&&... args) -> void
41
{
42
- auto task = [this, eventName, payload = std::make_tuple(std::forward<Args>(args)...)]() mutable {
43
- std::apply([this, eventName](auto&&... args) {
44
- m_dispatcher.emit(eventName, std::forward<decltype(args)>(args)...);
45
- }, std::move(payload));
+ auto task = [this, eventName, ... args = std::forward<Args>(args)]() mutable {
+ m_dispatcher.emit(eventName, std::move(args)...);
46
};
47
enqueue(std::move(task));
48
}
0 commit comments