Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r57171 - trunk/boost/thread
From: anthony_at_[hidden]
Date: 2009-10-27 06:40:58


Author: anthonyw
Date: 2009-10-27 06:40:57 EDT (Tue, 27 Oct 2009)
New Revision: 57171
URL: http://svn.boost.org/trac/boost/changeset/57171

Log:
Fix for move assignment of unique_lock if rvalue refs supported
Text files modified:
   trunk/boost/thread/locks.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/thread/locks.hpp
==============================================================================
--- trunk/boost/thread/locks.hpp (original)
+++ trunk/boost/thread/locks.hpp 2009-10-27 06:40:57 EDT (Tue, 27 Oct 2009)
@@ -265,14 +265,14 @@
 
         unique_lock& operator=(unique_lock<Mutex>&& other)
         {
- unique_lock temp(other);
+ unique_lock temp(std::move(other));
             swap(temp);
             return *this;
         }
 
         unique_lock& operator=(upgrade_lock<Mutex>&& other)
         {
- unique_lock temp(other);
+ unique_lock temp(std::move(other));
             swap(temp);
             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