Don't use template vararg references for signals
This commit is contained in:
parent
c3b8b1e147
commit
6e85e3c97b
@ -60,8 +60,12 @@ class signal {
|
||||
void clear (void)
|
||||
{ m_children.clear (); }
|
||||
|
||||
/// Execute all callbacks. Does not combine results.
|
||||
void operator () (Args&... tail) {
|
||||
/// Returns the number of callbacks connected.
|
||||
unsigned int size (void) const
|
||||
{ return m_children.size (); }
|
||||
|
||||
/// Execute all callbacks, ignoring the return parameters. Does not combine results.
|
||||
void operator () (Args... tail) {
|
||||
for (auto i = m_children.begin (), end = m_children.end (); i != end; ++i)
|
||||
(*i)(tail...);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user