mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user