Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10878: boost::thread::attributes -> no non-variadic-support
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-09-05 14:51:18
#10878: boost::thread::attributes -> no non-variadic-support
-------------------------------+-----------------------------------------
Reporter: a.carot@⦠| Owner: viboes
Type: Feature Requests | Status: assigned
Milestone: To Be Determined | Component: thread
Version: Boost 1.57.0 | Severity: Problem
Resolution: | Keywords: thread,attributes,variadics
-------------------------------+-----------------------------------------
Comment (by viboes):
Please, could you give an example and the compiler error you are getting.
I see on the develop branch this overload that should avoid the issue
{{{
template <class F,class A1>
thread(F f,A1 a1,typename
disable_if<boost::thread_detail::is_convertible<F&,thread_attributes >,
dummy* >::type=0):
thread_info(make_thread_info(boost::bind(boost::type<void>(),f,a1)))
{
start_thread();
}
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10878#comment:2> 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:19 UTC