From c5780976a1851d667fc87dd91a2fc95b78feb9e4 Mon Sep 17 00:00:00 2001 From: Jamie Reece Wilson Date: Sun, 19 May 2024 05:01:56 +0100 Subject: [PATCH] [*] Updated: "auCastUtils.hpp [*] Update casts again 2 years ago" --- Include/auROXTL/auCastUtils.hpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Include/auROXTL/auCastUtils.hpp b/Include/auROXTL/auCastUtils.hpp index f477eae..80aa5a1 100644 --- a/Include/auROXTL/auCastUtils.hpp +++ b/Include/auROXTL/auCastUtils.hpp @@ -25,6 +25,12 @@ static constexpr AuConditional_t, T, T *> AuStaticCast(Z *other return static_cast, T, T *>>(other); } +template +static constexpr AuConditional_t, const AuRemoveConst_t, const AuRemoveConst_t *> AuStaticCast(const Z *other) +{ + return static_cast, const AuRemoveConst_t, const AuRemoveConst_t *>>(other); +} + template && AuIsLValueReference_v)> static constexpr AuConditional_t, T, T &> AuStaticCast(Z other) { @@ -79,6 +85,12 @@ static constexpr AuConditional_t && !AuIsPointer_v && !AuIsRef return reinterpret_cast && !AuIsPointer_v && !AuIsReference_v, T *, T>>(other); } +template +static constexpr AuConditional_t, const AuRemoveConst_t, const AuRemoveConst_t *> AuReinterpretCast(const Z *other) +{ + return reinterpret_cast, const AuRemoveConst_t, const AuRemoveConst_t *>>(other); +} + template static constexpr AuSPtr AuReinterpretCast(const AuSPtr &other) {