You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
registerEventHandler: lambda deduction fails without explicit template parameter #1
EventHandler::registerEventHandler takes std::function<void(const EventType&)>, which blocks template argument deduction when the caller passes a lambda. Every call site must spell out the explicit type:
Without the explicit <Messages::EventMsg> the compiler cannot deduce EventType from a lambda (a lambda is not a std::function), and the call fails to compile.
Suggested fix
Add an unconstrained forwarding overload that deduces the handler argument type and extracts EventType via std::invoke_result or a traits helper:
Activity