[*] Amend: "[*] Updated: "auCastUtils.hpp [*] Update casts again 2 years ago""

This commit is contained in:
Reece Wilson 2024-06-19 23:01:45 +01:00
parent 6e92197438
commit c9be4cc419

View File

@ -86,9 +86,9 @@ static constexpr AuConditional_t<AuIsClass_v<T> && !AuIsPointer_v<T> && !AuIsRef
}
template <class T, class Z>
static constexpr AuConditional_t<AuIsPointer_v<T>, const AuRemoveConst_t<T>, const AuRemoveConst_t<T> *> AuReinterpretCast(const Z *other)
static constexpr AuConditional_t<AuIsClass_v<T> && !AuIsPointer_v<T> && !AuIsReference_v<Z>, const T *, const T> AuReinterpretCast(const Z *other)
{
return reinterpret_cast<AuConditional_t<AuIsPointer_v<T>, const AuRemoveConst_t<T>, const AuRemoveConst_t<T> *>>(other);
return reinterpret_cast<AuConditional_t<AuIsClass_v<T> && !AuIsPointer_v<T> && !AuIsReference_v<Z>, const AuRemoveConst_t<T> *, const AuRemoveConst_t<T>>>(other);
}
template <class T, class Z>