Move uintptr definitions to separate namespace declaration

Co-authored-by: jll63 <5083077+jll63@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-18 05:54:25 +00:00
parent 8e1603766e
commit 2a3145718b

View File

@@ -17,6 +17,21 @@
#pragma warning(disable : 4702) // unreachable code
#endif
namespace boost::openmethod::detail {
#if defined(UINTPTR_MAX)
using uintptr = std::uintptr_t;
constexpr uintptr uintptr_max = UINTPTR_MAX;
#else
static_assert(
sizeof(std::size_t) == sizeof(void*),
"This implementation requires that size_t and void* have the same size.");
using uintptr = std::size_t;
constexpr uintptr uintptr_max = (std::numeric_limits<std::size_t>::max)();
#endif
} // namespace boost::openmethod::detail
namespace boost::openmethod {
namespace detail {