signal: don't forward arguments we may reuse
This commit is contained in:
parent
2b3ef6dbc6
commit
96d621a461
@ -32,7 +32,7 @@ namespace util {
|
|||||||
R operator() (T first, T last, Args&&... args)
|
R operator() (T first, T last, Args&&... args)
|
||||||
{
|
{
|
||||||
while (first != last)
|
while (first != last)
|
||||||
if (!(*first++)(std::forward<Args> (args)...))
|
if (!(*first++)(args...))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@ -47,7 +47,7 @@ namespace util {
|
|||||||
R operator() (T first, T last, Args&&... args)
|
R operator() (T first, T last, Args&&... args)
|
||||||
{
|
{
|
||||||
while (first != last)
|
while (first != last)
|
||||||
if ((*first++)(std::forward<Args> (args)...))
|
if ((*first++)(args...))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
@ -62,7 +62,7 @@ namespace util {
|
|||||||
R operator() (T first, T last, Args&&... args)
|
R operator() (T first, T last, Args&&... args)
|
||||||
{
|
{
|
||||||
while (first != last) {
|
while (first != last) {
|
||||||
(*first++)(std::forward<Args> (args)...);
|
(*first++)(args...);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user