From c3b8b1e1476ca785e4d0748f0f17d1b8887b9805 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Sun, 3 Jul 2011 16:02:36 +1000 Subject: [PATCH] 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. --- signal.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/signal.hpp b/signal.hpp index b6a480e9..664dea09 100644 --- a/signal.hpp +++ b/signal.hpp @@ -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)