From 8ff6d1764d6fb351aa465922eded72ada94cd8bb Mon Sep 17 00:00:00 2001 From: Laurent Perron Date: Fri, 26 Jul 2019 10:21:41 -0700 Subject: [PATCH] fix --- ortools/constraint_solver/routing_lp_scheduling.cc | 3 +++ ortools/constraint_solver/routing_lp_scheduling.h | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ortools/constraint_solver/routing_lp_scheduling.cc b/ortools/constraint_solver/routing_lp_scheduling.cc index d65ed846a3..cc4cb95734 100644 --- a/ortools/constraint_solver/routing_lp_scheduling.cc +++ b/ortools/constraint_solver/routing_lp_scheduling.cc @@ -134,6 +134,9 @@ bool LocalDimensionCumulOptimizer::ComputePackedRouteCumuls( lp_solver_[vehicle].get(), packed_cumuls); } +const int CumulBoundsPropagator::kNoParent = -2; +const int CumulBoundsPropagator::kParentToBePropagated = -1; + CumulBoundsPropagator::CumulBoundsPropagator(const RoutingDimension* dimension) : dimension_(*dimension), num_nodes_(2 * dimension->cumuls().size()) { outgoing_arcs_.resize(num_nodes_); diff --git a/ortools/constraint_solver/routing_lp_scheduling.h b/ortools/constraint_solver/routing_lp_scheduling.h index e7f5df7a7b..fbd21b4d55 100644 --- a/ortools/constraint_solver/routing_lp_scheduling.h +++ b/ortools/constraint_solver/routing_lp_scheduling.h @@ -47,8 +47,8 @@ class CumulBoundsPropagator { int head; int64 offset; }; - static constexpr int kNoParent = -2; - static constexpr int kParentToBePropagated = -1; + static const int kNoParent; + static const int kParentToBePropagated; // Return the node corresponding to the lower bound of the cumul of index and // -index respectively.