summaryrefslogtreecommitdiff
path: root/absl/hash/internal
diff options
context:
space:
mode:
authorGravatar Jonathan Conder <jonathan.conder@soulmachines.com>2022-08-12 17:22:19 +1200
committerGravatar Jonathan Conder <jonathan.conder@soulmachines.com>2022-08-12 17:22:19 +1200
commit0335c3d2a035d1ed1c25882bdb6080ffc8c98cf8 (patch)
treee5368789ea72b543cd6a050e426b0a92090b79c7 /absl/hash/internal
parent697acabc5b7e28c51f7ab8d2f43d4ef4fed77f8d (diff)
Workaround bug in GCC 7.2
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83830. Before GCC 7.4, __cpp_lib_has_unique_object_representations was defined but has_unique_object_representations_v was not.
Diffstat (limited to 'absl/hash/internal')
-rw-r--r--absl/hash/internal/hash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/hash/internal/hash.h b/absl/hash/internal/hash.h
index 45dfdd46..dbdc2050 100644
--- a/absl/hash/internal/hash.h
+++ b/absl/hash/internal/hash.h
@@ -444,7 +444,7 @@ H AbslHashValue(H hash_state, T C::* ptr) {
// On other platforms, we assume that pointers-to-members do not have
// padding.
#ifdef __cpp_lib_has_unique_object_representations
- static_assert(std::has_unique_object_representations_v<T C::*>);
+ static_assert(std::has_unique_object_representations<T C::*>::value);
#endif // __cpp_lib_has_unique_object_representations
return n;
#endif