|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r59727 - trunk/boost/thread/detail
From: anthony_at_[hidden]
Date: 2010-02-17 03:34:10
Author: anthonyw
Date: 2010-02-17 03:34:09 EST (Wed, 17 Feb 2010)
New Revision: 59727
URL: http://svn.boost.org/trac/boost/changeset/59727
Log:
Overload boost::move for thread& and thread&&
Text files modified:
trunk/boost/thread/detail/thread.hpp | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
Modified: trunk/boost/thread/detail/thread.hpp
==============================================================================
--- trunk/boost/thread/detail/thread.hpp (original)
+++ trunk/boost/thread/detail/thread.hpp 2010-02-17 03:34:09 EST (Wed, 17 Feb 2010)
@@ -344,9 +344,13 @@
}
#ifndef BOOST_NO_RVALUE_REFERENCES
+ inline thread&& move(thread& t)
+ {
+ return static_cast<thread&&>(t);
+ }
inline thread&& move(thread&& t)
{
- return t;
+ return static_cast<thread&&>(t);
}
#else
inline detail::thread_move_t<thread> move(detail::thread_move_t<thread> 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