From 95853b77c35b25e61c3d668bba53bb4d55002ecc Mon Sep 17 00:00:00 2001 From: Laurent Perron Date: Thu, 2 Dec 2021 10:37:10 +0100 Subject: [PATCH] improve example --- examples/cpp/uncapacitated_facility_location.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/cpp/uncapacitated_facility_location.cc b/examples/cpp/uncapacitated_facility_location.cc index 21943fda42..852e8ba985 100644 --- a/examples/cpp/uncapacitated_facility_location.cc +++ b/examples/cpp/uncapacitated_facility_location.cc @@ -39,14 +39,14 @@ ABSL_FLAG(double, fix_cost, 5000, "Cost of opening a facility."); namespace operations_research { typedef struct { - double x{0}; - double y{0}; + double x = 0.0; + double y = 0.0; } Location; typedef struct { - int f{-1}; - int c{-1}; - MPVariable* x{nullptr}; + int f = -1; + int c = -1; + MPVariable* x = nullptr; } Edge; static double Distance(const Location& src, const Location& dst) {