https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65393
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2015-03-11 Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org Target Milestone|--- |6.0 Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Klemens from comment #0) > could be changed to > _M_start_thread(std::move(__b), nullptr); > > or alternatively take __shared_base_type by "universal reference" and > forward it into the other _M_start_thread overload. (They're called forwarding references now) That would require making the function a template, for no benefit. It should be moved. In general, these inefficiencies are pretty tiny compared to the cost of launching a new thread that happens immediately after.