Use reinterpret_cast
This commit is contained in:
1 parent
13f2090608
commit
6edb26dcf8
1 file changed
+1
-1
+1
-1
@@ -13,7 +13,7 @@ enum : MapIndex { MAP_SENTINEL = ~(MapIndex)0 };
|
|||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
struct PtrMapConstant {
|
struct PtrMapConstant {
|
||||||
static constexpr T TOMBSTONE = (T)(void *)~(uintptr)0;
|
static constexpr T TOMBSTONE = reinterpret_cast<T>(reinterpret_cast<void *>(~(uintptr)0));
|
||||||
};
|
};
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
|
|||||||
Reference in new issue
Block a user