Modify

Opened 4 years ago

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

Attachments (0)

Change History (3)

comment:1 Changed 4 years ago by viboes

Owner: changed from Anthony Williams to viboes
Status: newassigned

comment:2 Changed 4 years ago by viboes

Milestone: To Be DeterminedBoost 1.55.0

Thanks for the patch.

Committed revision [85494].

comment:3 Changed 4 years ago by viboes

Resolution: fixed
Status: assignedclosed

Committed revision [85663].

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain viboes.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.