Changes between Initial Version and Version 1 of Ticket #8596, comment 2
- Timestamp:
- May 20, 2013, 2:24:15 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #8596, comment 2
initial v1 8 8 9 9 {{{ 10 svn diff future.hpp 10 svn diff future.hpp detail/config.hpp 11 11 Index: future.hpp 12 12 =================================================================== … … 24 24 #if defined(BOOST_THREAD_PROVIDES_VARIADIC_THREAD) 25 25 typedef detail::task_object<FR,R(ArgTypes...)> task_object_type; 26 @@ -2852,7 +2852,7 @@ 27 #else 28 typedef detail::task_object<FR,R> task_object_type; 26 @@ -2923,8 +2923,8 @@ 27 template <class F, class Allocator> 28 packaged_task(boost::allocator_arg_t, Allocator a, BOOST_THREAD_RV_REF(F) f) 29 { 30 - //typedef typename remove_cv<typename remove_reference<F>::type>::type FR; 31 - typedef F FR; 32 + typedef typename remove_cv<typename remove_reference<F>::type>::type FR; 33 + //typedef F FR; 34 #if defined BOOST_THREAD_PROVIDES_SIGNATURE_PACKAGED_TASK 35 #if defined(BOOST_THREAD_PROVIDES_VARIADIC_THREAD) 36 typedef detail::task_object<FR,R(ArgTypes...)> task_object_type; 37 Index: detail/config.hpp 38 =================================================================== 39 --- detail/config.hpp (revision 84336) 40 +++ detail/config.hpp (working copy) 41 @@ -95,7 +95,7 @@ 29 42 #endif 30 - task = task_ptr(new task_object_type(boost::forward<F>(f)));31 + task = task_ptr(new task_object_type(boost::forward<FR>(f)));32 future_obtained = false;33 43 34 } 44 /// RVALUE_REFERENCES_DONT_MATCH_FUNTION_PTR 45 -#if defined BOOST_NO_CXX11_RVALUE_REFERENCES || defined BOOST_MSVC 46 +#if defined BOOST_NO_CXX11_RVALUE_REFERENCES || defined BOOST_MSVC || (defined __GNUC__ && ! defined __clang__) 47 #define BOOST_THREAD_RVALUE_REFERENCES_DONT_MATCH_FUNTION_PTR 48 #endif 35 49 36 50 }}}