aboutsummaryrefslogtreecommitdiff
path: root/absl/container/internal/hash_policy_testing.h
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2024-01-22 09:09:23 -0800
committerCopybara-Service <copybara-worker@google.com>2024-01-22 09:10:07 -0800
commitf7d2b13ef2466a5a3b7bcc535c49d3962a5c89f9 (patch)
treed910edc3792d77c3eb1bd4bd52bc06f81be9480e /absl/container/internal/hash_policy_testing.h
parentb21b4898f9f4b967d5faa27f3e090535c4de1422 (diff)
downloadabseil-f7d2b13ef2466a5a3b7bcc535c49d3962a5c89f9.tar.gz
abseil-f7d2b13ef2466a5a3b7bcc535c49d3962a5c89f9.tar.bz2
abseil-f7d2b13ef2466a5a3b7bcc535c49d3962a5c89f9.zip
Remove code pieces for no longer supported GCC versions.
The minimum supported version today is GCC 7 (`__GNUC__ >= 7`). PiperOrigin-RevId: 600475215 Change-Id: I1aa46384f1e75f268649a48dbe2b42f3475bb07f
Diffstat (limited to 'absl/container/internal/hash_policy_testing.h')
-rw-r--r--absl/container/internal/hash_policy_testing.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/absl/container/internal/hash_policy_testing.h b/absl/container/internal/hash_policy_testing.h
index 01c40d2e..66bb12ec 100644
--- a/absl/container/internal/hash_policy_testing.h
+++ b/absl/container/internal/hash_policy_testing.h
@@ -174,8 +174,7 @@ ABSL_NAMESPACE_END
// From GCC-4.9 Changelog: (src: https://gcc.gnu.org/gcc-4.9/changes.html)
// "the unordered associative containers in <unordered_map> and <unordered_set>
// meet the allocator-aware container requirements;"
-#if (defined(__GLIBCXX__) && __GLIBCXX__ <= 20140425 ) || \
-( __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 9 ))
+#if defined(__GLIBCXX__) && __GLIBCXX__ <= 20140425
#define ABSL_UNORDERED_SUPPORTS_ALLOC_CTORS 0
#else
#define ABSL_UNORDERED_SUPPORTS_ALLOC_CTORS 1