diff --git a/Utilities/StrFmt.h b/Utilities/StrFmt.h index 17c3640238..83f1e1eb51 100644 --- a/Utilities/StrFmt.h +++ b/Utilities/StrFmt.h @@ -91,9 +91,9 @@ struct fmt_unveil::value>> template struct fmt_unveil { - using type = const T*; + using type = std::add_const_t*; - static inline u64 get(const T* arg) + static inline u64 get(type arg) { return reinterpret_cast(arg); } @@ -102,9 +102,9 @@ struct fmt_unveil template struct fmt_unveil { - using type = const T*; + using type = std::add_const_t*; - static inline u64 get(const T* arg) + static inline u64 get(type arg) { return reinterpret_cast(arg); }