1176. Make thread constructor non-variadic

Section: [thread.thread.constr] Status: NAD Submitter: Howard Hinnant Opened: 2009-07-18 Last modified: 2016-01-28 10:19:27 UTC

Priority: Not Prioritized

View all other issues in [thread.thread.constr].

View all issues with NAD status.


The variadic thread constructor is causing controversy, e.g. N2901. This issue has been created as a placeholder for this course of action.

template <class F, class ...Args> thread(F&& f, Args&&... args);

See 929 for wording which specifies an rvalue-ref signature but with "decay behavior", but using variadics.

[ 2009-11-17 Moved to Tentatively NAD after 5 positive votes on c++std-lib. Rationale added below. ]

Proposed resolution:


The (tentative) concensus of the LWG is to keep the variadic thread constructor.