Opened 9 years ago

Closed 9 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:

Description

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 by viboes, 9 years ago

Owner: changed from Anthony Williams to viboes
Status: newassigned

comment:2 by viboes, 9 years ago

Milestone: To Be DeterminedBoost 1.55.0

Thanks for the patch.

Committed revision [85494].

comment:3 by viboes, 9 years ago

Resolution: fixed
Status: assignedclosed

Committed revision [85663].

Note: See TracTickets for help on using tickets.