1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-11 15:49:38 +00:00

Adjust move semantics.

This commit is contained in:
Thomas Harte 2024-12-05 22:09:07 -05:00
parent 9b357a9fbf
commit 268842681a

View File

@ -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);