From 1cea8b5400d1d02085c45dc4689c7f6deb4eacd6 Mon Sep 17 00:00:00 2001 From: Laurent Perron Date: Tue, 3 Dec 2019 17:19:10 +0100 Subject: [PATCH] temporary fix for max python/java flakyness --- ortools/sat/model.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ortools/sat/model.h b/ortools/sat/model.h index 65268b4974..a930167273 100644 --- a/ortools/sat/model.h +++ b/ortools/sat/model.h @@ -174,7 +174,11 @@ class Model { } // Map of FastTypeId to a "singleton" of type T. +#if defined(__APPLE__) + std::map singletons_; +#else absl::flat_hash_map singletons_; +#endif struct DeleteInterface { virtual ~DeleteInterface() = default;