diff --git a/src/common.h b/src/common.h index f1e3c27ad..5b46e3636 100644 --- a/src/common.h +++ b/src/common.h @@ -260,7 +260,7 @@ void vec_append(std::vector &receiver, std::vector &&donator) { if (receiver.empty()) { receiver = std::move(donator); } else { - receiver.emplace(receiver.end(), std::make_move_iterator(donator.begin()), + receiver.insert(receiver.end(), std::make_move_iterator(donator.begin()), std::make_move_iterator(donator.end())); } }