Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53793 - trunk/boost/signals2
From: fmhess_at_[hidden]
Date: 2009-06-11 14:30:27


Author: fmhess
Date: 2009-06-11 14:30:26 EDT (Thu, 11 Jun 2009)
New Revision: 53793
URL: http://svn.boost.org/trac/boost/changeset/53793

Log:
Trying to work around sun 5.9 compiler bug to make connection_test pass.

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

Modified: trunk/boost/signals2/connection.hpp
==============================================================================
--- trunk/boost/signals2/connection.hpp (original)
+++ trunk/boost/signals2/connection.hpp 2009-06-11 14:30:26 EDT (Thu, 11 Jun 2009)
@@ -228,6 +228,12 @@
       scoped_connection(const scoped_connection &other);
       scoped_connection& operator=(const scoped_connection &rhs);
     };
+ // Sun 5.9 compiler doesn't find the swap for base connection class when
+ // arguments are scoped_connection, so we provide this explicitly.
+ inline void swap(scoped_connection &conn1, scoped_connection &conn2)
+ {
+ conn1.swap(conn2);
+ }
   }
 }
 


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