|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r59856 - trunk/boost/thread/detail
From: anthony_at_[hidden]
Date: 2010-02-23 08:46:14
Author: anthonyw
Date: 2010-02-23 08:46:13 EST (Tue, 23 Feb 2010)
New Revision: 59856
URL: http://svn.boost.org/trac/boost/changeset/59856
Log:
Modified boost::thread to work with MSVC10 RC
Text files modified:
trunk/boost/thread/detail/thread.hpp | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
Modified: trunk/boost/thread/detail/thread.hpp
==============================================================================
--- trunk/boost/thread/detail/thread.hpp (original)
+++ trunk/boost/thread/detail/thread.hpp 2010-02-23 08:46:13 EST (Tue, 23 Feb 2010)
@@ -43,6 +43,9 @@
thread_data(F&& f_):
f(static_cast<F&&>(f_))
{}
+ thread_data(F& f_):
+ f(f_)
+ {}
#else
thread_data(F f_):
f(f_)
@@ -127,7 +130,7 @@
}
static inline detail::thread_data_ptr make_thread_info(void (*f)())
{
- return detail::thread_data_ptr(detail::heap_new<detail::thread_data<void(*)()> >(f));
+ return detail::thread_data_ptr(detail::heap_new<detail::thread_data<void(*)()> >(static_cast<void(*&&)()>(f)));
}
#else
template<typename F>
@@ -141,8 +144,8 @@
return detail::thread_data_ptr(detail::heap_new<detail::thread_data<F> >(f));
}
- struct dummy;
#endif
+ struct dummy;
public:
#ifdef __SUNPRO_CC
thread(const volatile thread&);
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