We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7ed8c3a + 0b2cd67 commit 31ee15cCopy full SHA for 31ee15c
1 file changed
src/fmindex-collection/std/chunk_view.hpp
@@ -12,6 +12,7 @@
12
#define SEQAN_STD_CHUNK_VIEW
13
14
#include <cassert>
15
+#include <cstdint>
16
#include <ranges>
17
18
#ifdef __cpp_lib_ranges_chunk
@@ -66,6 +67,18 @@ constexpr auto to_unsigned_like(std::_Unsigned128 v) noexcept
66
67
}
68
#endif
69
70
+//!WORKAROUND GCC/Clang
71
+// GCC uses __int128 as range type
72
+#if defined(__GNUC__)
73
+// required for GCC using __int128 in some cases
74
+template <typename T>
75
+ requires (!std::integral<T> && std::convertible_to<T, uint64_t>)
76
+constexpr auto to_unsigned_like(T v) noexcept
77
+{
78
+ return static_cast<uint64_t>(v);
79
+}
80
+#endif
81
+
82
83
} // namespace seqan::stl::detail::chunk
84
0 commit comments