Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r59758 - trunk/boost/thread/detail
From: anthony_at_[hidden]
Date: 2010-02-19 04:54:01


Author: anthonyw
Date: 2010-02-19 04:54:00 EST (Fri, 19 Feb 2010)
New Revision: 59758
URL: http://svn.boost.org/trac/boost/changeset/59758

Log:
Disable templated rvalue ref constructor for MSVC10

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

Modified: trunk/boost/thread/detail/thread.hpp
==============================================================================
--- trunk/boost/thread/detail/thread.hpp (original)
+++ trunk/boost/thread/detail/thread.hpp 2010-02-19 04:54:00 EST (Fri, 19 Feb 2010)
@@ -151,12 +151,21 @@
         ~thread();
 
 #ifndef BOOST_NO_RVALUE_REFERENCES
+#ifdef BOOST_MSVC
+ 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(f))
+ {
+ start_thread();
+ }
+#else
         template <class F>
         thread(F&& f):
             thread_info(make_thread_info(static_cast<F&&>(f)))
         {
             start_thread();
         }
+#endif
 
         thread(thread&& other)
         {


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