[Boost-bugs] [Boost C++ Libraries] #9048: boost::scoped_thread useless ctor with variadic template arguments

Subject: [Boost-bugs] [Boost C++ Libraries] #9048: boost::scoped_thread useless ctor with variadic template arguments
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-08-26 16:54:51


#9048: boost::scoped_thread useless ctor with variadic template arguments
------------------------------+----------------------
 Reporter: ruslan_baratov@… | Owner: anthonyw
     Type: Patches | Status: new
Milestone: To Be Determined | Component: thread
  Version: Boost 1.54.0 | Severity: Problem
 Keywords: |
------------------------------+----------------------
 Ctor boost::scoped_thread is useless, because of default argument.
 It can be fixed by moving is_same check to template parameters.

 I've send pull request to github (variadic.ctor)

 Now you can able to write:

 {{{
 void f(int, int);

 boost::scoped_thread<> thread(f, 1, 2);
 }}}

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