mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-20 19:40:34 +00:00
Try C-cast with reintepret cast
This commit is contained in:
@@ -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 <>
|
||||
|
||||
Reference in New Issue
Block a user