Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lperron committed Jan 10, 2025
1 parent bb80590 commit 965f2f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ortools/routing/decision_builders.cc
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ class SetCumulsFromLocalDimensionCosts : public DecisionBuilder {
if (rg_index_ < 0) {
for (int v = 0; v < model_.vehicles(); ++v) {
const int route_size = GetVehicleRouteSize(model_, v);
vehicle_info.emplace_back(v, route_size, false);
vehicle_info.push_back({v, route_size, false});
}
absl::c_sort(vehicle_info);
vehicles_without_resource_assignment->resize(model_.vehicles());
Expand Down Expand Up @@ -389,8 +389,8 @@ class SetCumulsFromLocalDimensionCosts : public DecisionBuilder {
num_vehicles_with_resource_assignment++;
}
}
vehicle_info.emplace_back(v, GetVehicleRouteSize(model_, v),
needs_resource);
vehicle_info.push_back({v, GetVehicleRouteSize(model_, v),
needs_resource});
}
absl::c_sort(vehicle_info);
vehicles_with_resource_assignment->reserve(
Expand Down

0 comments on commit 965f2f4

Please sign in to comment.