[Boost-bugs] [Boost C++ Libraries] #10878: boost::thread::attributes -> no non-variadic-support

Subject: [Boost-bugs] [Boost C++ Libraries] #10878: boost::thread::attributes -> no non-variadic-support
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-12-16 22:12:16


#10878: boost::thread::attributes -> no non-variadic-support
-----------------------------------------+----------------------
 Reporter: a.carot@… | Owner: anthonyw
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: threads
  Version: Boost 1.57.0 | Severity: Problem
 Keywords: thread,attributes,variadics |
-----------------------------------------+----------------------
 In terms of applying thread attributes right now the documentation
 describes only this signature:

 template<typename Callable>
 thread(attributes& attrs, Callable func);

 but this does not work when variadics are not supported (leading to error:
 type 'boost::thread_attributes' does not provide a call operator)

 Nevertheless, this temporaray way works out:

 thread(attributes& attrs, boost::bind(Callable func));

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10878>
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:17 UTC