Fix warning (fmt_unveil)
This commit is contained in:
+4
-4
@@ -91,9 +91,9 @@ struct fmt_unveil<T, std::enable_if_t<std::is_enum<T>::value>>
|
|||||||
template <typename T>
|
template <typename T>
|
||||||
struct fmt_unveil<T*, void>
|
struct fmt_unveil<T*, void>
|
||||||
{
|
{
|
||||||
using type = const T*;
|
using type = std::add_const_t<T>*;
|
||||||
|
|
||||||
static inline u64 get(const T* arg)
|
static inline u64 get(type arg)
|
||||||
{
|
{
|
||||||
return reinterpret_cast<std::uintptr_t>(arg);
|
return reinterpret_cast<std::uintptr_t>(arg);
|
||||||
}
|
}
|
||||||
@@ -102,9 +102,9 @@ struct fmt_unveil<T*, void>
|
|||||||
template <typename T, std::size_t N>
|
template <typename T, std::size_t N>
|
||||||
struct fmt_unveil<T[N], void>
|
struct fmt_unveil<T[N], void>
|
||||||
{
|
{
|
||||||
using type = const T*;
|
using type = std::add_const_t<T>*;
|
||||||
|
|
||||||
static inline u64 get(const T* arg)
|
static inline u64 get(type arg)
|
||||||
{
|
{
|
||||||
return reinterpret_cast<std::uintptr_t>(arg);
|
return reinterpret_cast<std::uintptr_t>(arg);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user