From f4b5f078bc8f6aca0bc8546a3eef9ccd8b34ff42 Mon Sep 17 00:00:00 2001 From: Reece Date: Fri, 25 Mar 2022 21:03:49 +0000 Subject: [PATCH] [*] Was coping --- Include/auROXTL/auTemplateMeta.hpp | 27 +++++++-------------------- 1 file changed, 7 insertions(+), 20 deletions(-) diff --git a/Include/auROXTL/auTemplateMeta.hpp b/Include/auROXTL/auTemplateMeta.hpp index 8cc4b4dd..72b43e9c 100644 --- a/Include/auROXTL/auTemplateMeta.hpp +++ b/Include/auROXTL/auTemplateMeta.hpp @@ -108,30 +108,17 @@ inline constexpr bool AuIsReference_v = true; template inline constexpr bool AuIsReference_v = true; -// a lot of third party code uses typename std::is_lvalue_reference<>::type -// unlike other defintions, in this instance, getting to an _t/_v in less steps doesn't matter so much -template -struct AuIsLValueReference : AuFalseType -{}; +template +inline constexpr bool AuIsLValueReference_v = false; template -struct AuIsLValueReference : AuTrueType -{}; +inline constexpr bool AuIsLValueReference_v = true; + +template +inline constexpr bool AuIsRValueReference_v = false; template -inline constexpr bool AuIsLValueReference_v = AuIsLValueReference::value; - - -template -struct AuIsRValueReference : AuFalseType -{}; - -template -struct AuIsRValueReference : AuTrueType -{}; - -template -inline constexpr bool AuIsRValueReference_v = AuIsRValueReference::value; +inline constexpr bool AuIsRValueReference_v = true; template struct AuRemovePointer