Boost logo

Boost-Commit :

From: fmhess_at_[hidden]
Date: 2008-03-10 15:47:41


Author: fmhess
Date: 2008-03-10 15:47:41 EDT (Mon, 10 Mar 2008)
New Revision: 43553
URL: http://svn.boost.org/trac/boost/changeset/43553

Log:
Added disconnect() call to assignment operator of scoped_connection, fixing
bug reported by 'Steve Hand' <biomech_at_[hidden]>.

Text files modified:
   sandbox/thread_safe_signals/boost/thread_safe_signals/connection.hpp | 1 +
   1 files changed, 1 insertions(+), 0 deletions(-)

Modified: sandbox/thread_safe_signals/boost/thread_safe_signals/connection.hpp
==============================================================================
--- sandbox/thread_safe_signals/boost/thread_safe_signals/connection.hpp (original)
+++ sandbox/thread_safe_signals/boost/thread_safe_signals/connection.hpp 2008-03-10 15:47:41 EDT (Mon, 10 Mar 2008)
@@ -191,6 +191,7 @@
       }
       const scoped_connection& operator=(const connection &rhs)
       {
+ disconnect();
         boost::signalslib::connection::operator=(rhs);
         return *this;
       }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk