diff --git a/Include/auROXTL/auCastUtils.hpp b/Include/auROXTL/auCastUtils.hpp index 7f9c47c..f477eae 100644 --- a/Include/auROXTL/auCastUtils.hpp +++ b/Include/auROXTL/auCastUtils.hpp @@ -43,7 +43,7 @@ static constexpr T AuStaticCast(Z other) return static_cast(other); } -template +template &&AuIsRValueReference_v)> static constexpr AuConditional_t, T, T *> AuConstCast(Z *other) { return const_cast, T, T *>>(other); @@ -74,9 +74,9 @@ static constexpr AuSPtr AuConstCast(AuSPtr &&other) } template -static constexpr AuConditional_t && !AuIsPointer_v && AuIsPointer_v, T *, T> AuReinterpretCast(Z other) +static constexpr AuConditional_t && !AuIsPointer_v && !AuIsReference_v, T *, T> AuReinterpretCast(Z other) { - return reinterpret_cast && !AuIsPointer_v &&AuIsPointer_v, T *, T>>(other); + return reinterpret_cast && !AuIsPointer_v && !AuIsReference_v, T *, T>>(other); } template