Re: [Boost-bugs] [Boost C++ Libraries] #9303: packaged_task<R(Argtypes)> does not compile using c++03 and Cmake 2.8.9

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9303: packaged_task<R(Argtypes)> does not compile using c++03 and Cmake 2.8.9
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-11-02 14:35:52


#9303: packaged_task<R(Argtypes)> does not compile using c++03 and Cmake 2.8.9
-------------------------------+---------------------------------------
  Reporter: e66a5b10@… | Owner: viboes
      Type: Bugs | Status: assigned
 Milestone: To Be Determined | Component: thread
   Version: Boost 1.54.0 | Severity: Problem
Resolution: | Keywords: packaged_task, bind, asio
-------------------------------+---------------------------------------

Comment (by viboes):

 This doesn't solves the issues,but I see that missed some code


 {{{
 svn diff future.hpp
 Index: future.hpp
 ===================================================================
 --- future.hpp (revision 86540)
 +++ future.hpp (working copy)
 @@ -2766,12 +2766,18 @@
              private:
                task_shared_state(task_shared_state&);
              public:
 +#if defined BOOST_THREAD_PROVIDES_SIGNATURE_PACKAGED_TASK &&
 defined(BOOST_THREAD_PROVIDES_VARIADIC_THREAD)
 + R (*f)(BOOST_THREAD_RV_REF(ArgTypes) ... );
 + task_shared_state(R (*f_)(BOOST_THREAD_RV_REF(ArgTypes)
 ... )):
 + f(f_)
 + {}
 +#else
                  R (*f)();
                  task_shared_state(R (*f_)()):
                      f(f_)
                  {}
 +#endif

 -
  #if defined BOOST_THREAD_PROVIDES_SIGNATURE_PACKAGED_TASK &&
 defined(BOOST_THREAD_PROVIDES_VARIADIC_THREAD)
                  void do_apply(BOOST_THREAD_RV_REF(ArgTypes) ... args)
                  {
 @@ -2848,12 +2854,18 @@
              private:
                task_shared_state(task_shared_state&);
              public:
 +#if defined BOOST_THREAD_PROVIDES_SIGNATURE_PACKAGED_TASK &&
 defined(BOOST_THREAD_PROVIDES_VARIADIC_THREAD)
 + R& (*f)(BOOST_THREAD_RV_REF(ArgTypes) ... );
 + task_shared_state(R& (*f_)(BOOST_THREAD_RV_REF(ArgTypes)
 ... )):
 + f(f_)
 + {}
 +#else
                  R& (*f)();
                  task_shared_state(R& (*f_)()):
                      f(f_)
                  {}
 +#endif

 -
  #if defined BOOST_THREAD_PROVIDES_SIGNATURE_PACKAGED_TASK &&
 defined(BOOST_THREAD_PROVIDES_VARIADIC_THREAD)
                  void do_apply(BOOST_THREAD_RV_REF(ArgTypes) ... args)
                  {

 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9303#comment:5>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:14 UTC