-
Type:
Improvement
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Server Programmability
-
Fully Compatible
-
None
-
None
-
None
-
None
-
None
-
None
-
None
The _internal namespaces are conventionally unsafe to use in Google's APIs.
There are some cases in Gtest where it's necessary, but these are bugs.
In 2024 Abseil recognized an API gap that was forcing users (including us) to reach into an internal absl namespace to access the default hash/eq functions for their hash tables.
We can fix that easily now.
Add a header include:
#include <absl/container/hash_container_defaults.h>
Replace absl::container_internal::hash_default_hash
with absl::DefaultHashContainerHash.
Replace absl::container_internal::hash_default_eq
with absl::DefaultHashContainerEq.