|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r77550 - trunk/boost/thread/detail
From: vicente.botet_at_[hidden]
Date: 2012-03-25 17:25:20
Author: viboes
Date: 2012-03-25 17:25:20 EDT (Sun, 25 Mar 2012)
New Revision: 77550
URL: http://svn.boost.org/trac/boost/changeset/77550
Log:
Thread: cleanup
Text files modified:
trunk/boost/thread/detail/thread.hpp | 20 +-------------------
1 files changed, 1 insertions(+), 19 deletions(-)
Modified: trunk/boost/thread/detail/thread.hpp
==============================================================================
--- trunk/boost/thread/detail/thread.hpp (original)
+++ trunk/boost/thread/detail/thread.hpp 2012-03-25 17:25:20 EDT (Sun, 25 Mar 2012)
@@ -212,17 +212,8 @@
~thread();
#ifndef BOOST_NO_RVALUE_REFERENCES
-#ifdef BOOST_MSVCXX
- template <class F>
- explicit thread(F f,typename disable_if<boost::is_convertible<F&,detail::thread_move_t<F> >, dummy* >::type=0):
- thread_info(make_thread_info(static_cast<F&&>(f)))
- {
- start_thread();
- }
-#else
template <
class F
- //, class Dummy = typename disable_if< is_same<typename decay<F>::type, thread> >::type
>
explicit thread(F&& f
, typename disable_if<is_same<typename decay<F>::type, thread>, dummy* >::type=0
@@ -233,7 +224,6 @@
}
template <
class F
- //, class Dummy = typename disable_if< is_same<typename decay<F>::type, thread> >::type
>
thread(attributes& attrs, F&& f
, typename disable_if<is_same<typename decay<F>::type, thread>, dummy* >::type=0
@@ -242,7 +232,6 @@
{
start_thread(attrs);
}
-#endif
thread(thread&& other) BOOST_NOEXCEPT
{
@@ -258,7 +247,7 @@
// thread&& move()
// {
-// return static_cast<thread&&>(*this);
+// return ::boost::move(*this);
// }
#else
@@ -320,12 +309,6 @@
// start_thread();
// }
//
-// template <class F>
-// explicit thread(BOOST_FWD_REF(F) f):
-// thread_info(make_thread_info(boost::forward<F>(f)))
-// {
-// start_thread();
-// }
template <class F>
thread(attributes& attrs, boost::rv<F>& f):
@@ -336,7 +319,6 @@
thread(boost::rv<thread>& x)
- //thread(BOOST_RV_REF(thread) x)
{
thread_info=x.thread_info;
x.thread_info.reset();
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