Remove signal disconnection methods

std::function does not support equality operators, so we have to remove
these or implement a better disconnection method. The former is easier
for the time being.
This commit is contained in:
Danny Robson 2011-07-03 16:02:36 +10:00
parent ced024dbe1
commit c3b8b1e147

View File

@ -45,16 +45,16 @@ class signal {
{ m_children.push_back (_cb); }
/// Remove all instances of callback `cb'
void disconnect (callback_function _cb)
{ disconnect (callback_object (_cb)); }
//void disconnect (callback_function _cb)
// { disconnect (callback_object (_cb)); }
/// Remove all instances of callback `cb'
void disconnect (callback_object _cb) {
/*void disconnect (callback_object _cb) {
m_children.erase (std::remove (m_children.begin (),
m_children.end (),
_cb),
m_children.end ());
}
}*/
/// Remove all callbacks
void clear (void)