Follow

I wrote

container.push_back(item);
auto& new_item = container.front();

and suffered grave consequences.

From now on i will only write

auto& new_item = container.emplace_back(item);

· · SubwayTooter · 0 · 0 · 0
Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.