From 965f2f4e70e3d7540102eca88ff7799cfef29864 Mon Sep 17 00:00:00 2001 From: Laurent Perron Date: Fri, 10 Jan 2025 22:44:28 +0100 Subject: [PATCH] fix --- ortools/routing/decision_builders.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ortools/routing/decision_builders.cc b/ortools/routing/decision_builders.cc index 264202ccf7..e0f650699b 100644 --- a/ortools/routing/decision_builders.cc +++ b/ortools/routing/decision_builders.cc @@ -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()); @@ -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(