From 8e1173bac9c414128cc0d961b10eaf5d12e3182e Mon Sep 17 00:00:00 2001 From: Aaron Gyes Date: Tue, 21 Dec 2021 02:08:23 -0800 Subject: [PATCH] Revert "common.h: use emplace in vec_append" This was dumb, and not intended for commit. This reverts commit ab353ce0e481358a76091ce64de51ce20e2ce888. --- src/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())); } }