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: 2014-02-27 22:22:11


#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):

 Hi and sorry for the delay.

 You need to use boost::ref() while passing by reference


 {{{
             boost::thread task(boost::move(example), boost::ref(ans));
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9303#comment:6>
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:15 UTC