Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r62717 - trunk/boost/thread
From: anthony_at_[hidden]
Date: 2010-06-10 03:38:24


Author: anthonyw
Date: 2010-06-10 03:38:23 EDT (Thu, 10 Jun 2010)
New Revision: 62717
URL: http://svn.boost.org/trac/boost/changeset/62717

Log:
Added static cast in move of upgrade_lock to work with MSVC10 and g++4.5

Text files modified:
   trunk/boost/thread/locks.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/thread/locks.hpp
==============================================================================
--- trunk/boost/thread/locks.hpp (original)
+++ trunk/boost/thread/locks.hpp 2010-06-10 03:38:23 EDT (Thu, 10 Jun 2010)
@@ -489,7 +489,7 @@
     template<typename Mutex>
     inline upgrade_lock<Mutex>&& move(upgrade_lock<Mutex>&& ul)
     {
- return ul;
+ return static_cast<upgrade_lock<Mutex>&&>(ul);
     }
 #endif
     template<typename Mutex>


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