wpiutil: Signal: Don't use std::forward when calling (#1371)

This causes a std::move of objects that are both moveable and copyable.
This commit is contained in:
Peter Johnson
2018-10-16 00:39:16 -07:00
committed by GitHub
parent 7933d2cbe5
commit c7118f8ade

View File

@@ -511,7 +511,7 @@ class SignalBase {
// call non blocked, non connected slots
if ((*curr)->connected()) {
if (!m_base.m_block && !(*curr)->blocked())
(*curr)->operator()(std::forward<A>(a)...);
(*curr)->operator()(a...);
prev = curr;
curr = (*curr)->next ? &((*curr)->next) : nullptr;
}