remove mac abseil workaround in cp-sat model.h

This commit is contained in:
Laurent Perron
2020-08-21 11:50:47 +02:00
parent 82aa07e40d
commit cb58bad8ee

View File

@@ -192,13 +192,7 @@ class Model {
const std::string name_;
// Map of FastTypeId<T> to a "singleton" of type T.
#if defined(__APPLE__)
// On Mac OS X, hashing is DLL dependent. It breaks cross dll usages of the
// model APIs. This happens in SWIG wrappers.
std::map</*typeid*/ size_t, void*> singletons_;
#else
absl::flat_hash_map</*typeid*/ size_t, void*> singletons_;
#endif
struct DeleteInterface {
virtual ~DeleteInterface() = default;