Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11266: boost::packaged_task has invalid variadic signature
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-05-14 17:29:38
#11266: boost::packaged_task has invalid variadic signature
-------------------------------------------------+-------------------------
Reporter: Alexander Karzhenkov | Owner: viboes
<karzhenkov@â¦> | Status: assigned
Type: Bugs | Component: thread
Milestone: To Be Determined | Severity: Problem
Version: Boost 1.58.0 | Keywords:
Resolution: | packaged_task, variadic
-------------------------------------------------+-------------------------
Comment (by Alexander Karzhenkov <karzhenkov@â¦>):
It's needed. Just try slightly modified test:
{{{
#define BOOST_THREAD_VERSION 4
#include <boost/thread/future.hpp>
void func(int) { }
int main()
{
boost::packaged_task<void(int)> task{func};
task(0); // ok
int x = 0;
task(x); // compile error: can't bind to rvalue reference
}
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11266#comment:3> 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:18 UTC