4 ms·
In that case, push_back to emplace_back changed the semantics (as construct + push_back made a move construction, whereas emplace_back did not).
by CJefferson 6y ago
In that case, push_back to emplace_back changed the semantics (as construct + push_back made a move construction, whereas emplace_back did not).
- shawnz 6y agoGood 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.