Opened 5 years ago

Closed 5 years ago

#9048 closed Patches (fixed)

boost::scoped_thread useless ctor with variadic template arguments

Reported by: ruslan_baratov@… Owned by: viboes
Milestone: Boost 1.55.0 Component: thread
Version: Boost 1.54.0 Severity: Problem
Keywords: Cc:


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);

Change History (3)

comment:1 Changed 5 years ago by viboes

Owner: changed from Anthony Williams to viboes
Status: newassigned

comment:2 Changed 5 years ago by viboes

Milestone: To Be DeterminedBoost 1.55.0

Thanks for the patch.

Committed revision [85494].

comment:3 Changed 5 years ago by viboes

Resolution: fixed
Status: assignedclosed

Committed revision [85663].

Note: See TracTickets for help on using tickets.