News for hackers. Stuff that matters.
Re:Don’t blindly prefer emplace_back to push_back by CJefferson on Thursday March 04, 2021 @11:14AM (#26344237)
In that case, push_back to emplace_back changed the semantics (as construct + push_back made a move construction, whereas emplace_back did not).
Re:Don’t blindly prefer emplace_back to push_back by shawnz on Thursday March 04, 2021 @11:19AM (#26344319)
Good point, it doesn't seem to be any bigger of a change than the original suggestion. Perhaps they mistakenly thought nobody would call emplace_back in that way by accident.