From 6e8c87edd47e88f93171ba06d9f4a0e5508768ef Mon Sep 17 00:00:00 2001 From: Reece Date: Sat, 21 May 2022 00:51:05 +0100 Subject: [PATCH] [*] Update casts again --- Include/auROXTL/auCastUtils.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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