Skip to content

Commit

Permalink
Partial cherry-pick of 498438a.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoupey committed Dec 19, 2024
1 parent ca09096 commit 9ea05f4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/utils/helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ void check_priority(const Priority priority,
}
}

std::vector<Job> get_unassigned_jobs_from_ranks(
inline std::vector<Job> get_unassigned_jobs_from_ranks(
const Input& input,
const std::unordered_set<Index>& unassigned_ranks) {
std::vector<Job> unassigned_jobs;
Expand Down Expand Up @@ -397,8 +397,7 @@ Solution format_solution(const Input& input, const RawSolution& raw_routes) {

return Solution(input.zero_amount(),
std::move(routes),
std::move(
get_unassigned_jobs_from_ranks(input, unassigned_ranks)));
get_unassigned_jobs_from_ranks(input, unassigned_ranks));
}

Route format_route(const Input& input,
Expand Down Expand Up @@ -900,8 +899,7 @@ Solution format_solution(const Input& input, const TWSolution& tw_routes) {

return Solution(input.zero_amount(),
std::move(routes),
std::move(
get_unassigned_jobs_from_ranks(input, unassigned_ranks)));
get_unassigned_jobs_from_ranks(input, unassigned_ranks));
}

} // namespace vroom::utils

0 comments on commit 9ea05f4

Please sign in to comment.