From 0ce3d9055b583b44304d47cf55cefb8da1aa35c0 Mon Sep 17 00:00:00 2001 From: _Redstone_c_ Date: Sun, 24 Apr 2022 23:11:00 +0800 Subject: [PATCH] refactor(templates): block direct access to element 16 of TTuple --- Redcraft.Utility/Source/Public/Templates/Tuple.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Redcraft.Utility/Source/Public/Templates/Tuple.h b/Redcraft.Utility/Source/Public/Templates/Tuple.h index c2cc9fd..c7c8d0d 100644 --- a/Redcraft.Utility/Source/Public/Templates/Tuple.h +++ b/Redcraft.Utility/Source/Public/Templates/Tuple.h @@ -58,9 +58,13 @@ struct TTupleElementType<0> { }; template struct TTupleElement { +private: + using ValueType = T; ValueType Value; +public: + template constexpr TTupleElement(Type&& Arg) : Value(Forward(Arg))