Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r76561 - trunk/boost/thread/detail
From: vicente.botet_at_[hidden]
Date: 2012-01-17 13:51:37


Author: viboes
Date: 2012-01-17 13:51:36 EST (Tue, 17 Jan 2012)
New Revision: 76561
URL: http://svn.boost.org/trac/boost/changeset/76561

Log:
Thread: try to fix #6420 - Call to forward ambiguous
Text files modified:
   trunk/boost/thread/detail/thread.hpp | 12 ++++++------
   1 files changed, 6 insertions(+), 6 deletions(-)

Modified: trunk/boost/thread/detail/thread.hpp
==============================================================================
--- trunk/boost/thread/detail/thread.hpp (original)
+++ trunk/boost/thread/detail/thread.hpp 2012-01-17 13:51:36 EST (Tue, 17 Jan 2012)
@@ -54,7 +54,7 @@
       typename decay<T>::type
       decay_copy(T&& t)
       {
- return forward<T>(t);
+ return boost::forward<T>(t);
       }
   }
 #endif
@@ -68,7 +68,7 @@
         public:
 #ifndef BOOST_NO_RVALUE_REFERENCES
             thread_data(F&& f_):
- f(forward<F>(f_))
+ f(boost::forward<F>(f_))
             {}
 // This overloading must be removed if we want the packaged_task's tests to pass.
 // thread_data(F& f_):
@@ -184,12 +184,12 @@
         static inline detail::thread_data_ptr make_thread_info(F&& f)
         {
             return detail::thread_data_ptr(detail::heap_new<detail::thread_data<typename boost::remove_reference<F>::type> >(
- forward<F>(f)));
+ boost::forward<F>(f)));
         }
         static inline detail::thread_data_ptr make_thread_info(void (*f)())
         {
             return detail::thread_data_ptr(detail::heap_new<detail::thread_data<void(*)()> >(
- forward<void(*)()>(f)));
+ boost::forward<void(*)()>(f)));
         }
 #else
         template<typename F>
@@ -237,7 +237,7 @@
         explicit thread(F&& f
         , typename disable_if<is_same<typename decay<F>::type, thread>, dummy* >::type=0
         ):
- thread_info(make_thread_info(thread_detail::decay_copy(forward<F>(f))))
+ thread_info(make_thread_info(thread_detail::decay_copy(boost::forward<F>(f))))
         {
             start_thread();
         }
@@ -248,7 +248,7 @@
         thread(attributes& attrs, F&& f
         , typename disable_if<is_same<typename decay<F>::type, thread>, dummy* >::type=0
         ):
- thread_info(make_thread_info(thread_detail::decay_copy(forward<F>(f))))
+ thread_info(make_thread_info(thread_detail::decay_copy(boost::forward<F>(f))))
         {
             start_thread(attrs);
         }


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