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 8e16037 commit 2a31457Copy full SHA for 2a31457
include/boost/openmethod/policies/minimal_perfect_hash.hpp
@@ -17,6 +17,21 @@
17
#pragma warning(disable : 4702) // unreachable code
18
#endif
19
20
+namespace boost::openmethod::detail {
21
+
22
+#if defined(UINTPTR_MAX)
23
+using uintptr = std::uintptr_t;
24
+constexpr uintptr uintptr_max = UINTPTR_MAX;
25
+#else
26
+static_assert(
27
+ sizeof(std::size_t) == sizeof(void*),
28
+ "This implementation requires that size_t and void* have the same size.");
29
+using uintptr = std::size_t;
30
+constexpr uintptr uintptr_max = (std::numeric_limits<std::size_t>::max)();
31
+#endif
32
33
+} // namespace boost::openmethod::detail
34
35
namespace boost::openmethod {
36
37
namespace detail {
0 commit comments