From bb7c013bf8a4f1217ef3feb8f9670e6057b43aff Mon Sep 17 00:00:00 2001 From: Mizux Seiha Date: Thu, 10 Aug 2023 20:19:14 +0200 Subject: [PATCH] workaround abseil-cpp regression. --- ortools/sat/cuts.cc | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/ortools/sat/cuts.cc b/ortools/sat/cuts.cc index 1e395aa1c82..cb31bc7cc66 100644 --- a/ortools/sat/cuts.cc +++ b/ortools/sat/cuts.cc @@ -76,7 +76,7 @@ std::string CutTerm::DebugString() const { } std::string CutData::DebugString() const { - std::string result = absl::StrCat("CutData rhs=", rhs, "\n"); + std::string result = absl::StrCat("CutData rhs="/*, rhs*/, "\n"); for (const CutTerm& term : terms) { absl::StrAppend(&result, term.DebugString(), "\n"); } @@ -2003,9 +2003,14 @@ FlowCoverCutHelper::~FlowCoverCutHelper() { } std::string SingleNodeFlow::DebugString() const { - return absl::StrCat("#in:", in_flow.size(), " #out:", out_flow.size(), - " demand:", demand, " #bool:", num_bool, - " #lb:", num_to_lb, " #ub:", num_to_ub); + return absl::StrCat( + "#in:", in_flow.size() + ," #out:", out_flow.size() + //," demand:", demand + ," #bool:", num_bool + ," #lb:", num_to_lb + ," #ub:", num_to_ub + ); } // The flow info of a linear term is always the same.