From 2de1068ad8d9f055b460d1d7f3707cb3db4eeab8 Mon Sep 17 00:00:00 2001 From: Redstone1024 <2824517378@qq.com> Date: Sun, 22 Dec 2024 17:27:32 +0800 Subject: [PATCH] fix(templates): fix Ref() call ambiguity --- .../Source/Public/Templates/ReferenceWrapper.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/Redcraft.Utility/Source/Public/Templates/ReferenceWrapper.h b/Redcraft.Utility/Source/Public/Templates/ReferenceWrapper.h index 945150b..60b572e 100644 --- a/Redcraft.Utility/Source/Public/Templates/ReferenceWrapper.h +++ b/Redcraft.Utility/Source/Public/Templates/ReferenceWrapper.h @@ -94,18 +94,6 @@ FORCEINLINE constexpr TReferenceWrapper Ref(TReferenceWrapper InValue) return Ref(InValue.Get()); } -template -FORCEINLINE constexpr TReferenceWrapper Ref(const T& InValue) -{ - return TReferenceWrapper(InValue); -} - -template -FORCEINLINE constexpr TReferenceWrapper Ref(TReferenceWrapper InValue) -{ - return Ref(InValue.Get()); -} - NAMESPACE_PRIVATE_BEGIN template struct TIsTReferenceWrapperImpl : FFalse { };