We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe5a2a4 commit 5f3435aCopy full SHA for 5f3435a
absl/hash/internal/hash.h
@@ -28,13 +28,25 @@
28
// defined.
29
#include "absl/base/config.h"
30
31
+// GCC15 warns that <ciso646> is deprecated in C++17 and suggests using
32
+// <version> instead, even though <version> is not available in C++17 mode prior
33
+// to GCC9.
34
+#if defined(__has_include)
35
+#if __has_include(<version>)
36
+#define ABSL_INTERNAL_VERSION_HEADER_AVAILABLE 1
37
+#endif
38
39
+
40
// For feature testing and determining which headers can be included.
-#if ABSL_INTERNAL_CPLUSPLUS_LANG >= 202002L
41
+#if ABSL_INTERNAL_CPLUSPLUS_LANG >= 202002L || \
42
+ ABSL_INTERNAL_VERSION_HEADER_AVAILABLE
43
#include <version>
44
#else
45
#include <ciso646>
46
#endif
47
48
+#undef ABSL_INTERNAL_VERSION_HEADER_AVAILABLE
49
50
#include <algorithm>
51
#include <array>
52
#include <bitset>
0 commit comments