Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r62715 - trunk/libs/thread/test
From: anthony_at_[hidden]
Date: 2010-06-10 03:36:58


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

Log:
Explicitly cast to rvalue reference in cast_to_rval so it works with
MSVC10 and g++4.5

Text files modified:
   trunk/libs/thread/test/test_futures.cpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/libs/thread/test/test_futures.cpp
==============================================================================
--- trunk/libs/thread/test/test_futures.cpp (original)
+++ trunk/libs/thread/test/test_futures.cpp 2010-06-10 03:36:57 EDT (Thu, 10 Jun 2010)
@@ -18,7 +18,7 @@
     template<typename T>
     typename boost::remove_reference<T>::type&& cast_to_rval(T&& t)
     {
- return t;
+ return static_cast<boost::remove_reference<T>::type&&>(t);
     }
 #else
     template<typename T>


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