From 268842681a55ac16f72ba2c04cc77aa12fd54892 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Thu, 5 Dec 2024 22:09:07 -0500 Subject: [PATCH] Adjust move semantics. --- Analyser/Static/StaticAnalyser.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Analyser/Static/StaticAnalyser.cpp b/Analyser/Static/StaticAnalyser.cpp index a48b4d5e8..8348cf805 100644 --- a/Analyser/Static/StaticAnalyser.cpp +++ b/Analyser/Static/StaticAnalyser.cpp @@ -342,7 +342,11 @@ TargetList Analyser::Static::GetTargets(const std::string &file_name) { return; } auto new_targets = evaluator(media, file_name, potential_platforms); - std::move(new_targets.begin(), new_targets.end(), std::back_inserter(targets)); + targets.insert( + targets.end(), + std::make_move_iterator(new_targets.begin()), + std::make_move_iterator(new_targets.end()) + ); }; append(TargetPlatform::Acorn, Acorn::GetTargets);