Try C-cast with reintepret cast

This commit is contained in:
gingerBill
2025-10-27 11:20:28 +00:00
parent 6edb26dcf8
commit 62d231d685

View File

@@ -13,7 +13,7 @@ enum : MapIndex { MAP_SENTINEL = ~(MapIndex)0 };
template <typename T>
struct PtrMapConstant {
static constexpr T TOMBSTONE = reinterpret_cast<T>(reinterpret_cast<void *>(~(uintptr)0));
static constexpr T const TOMBSTONE = (T)reinterpret_cast<void *>(~(uintptr)0);
};
template <>