refactor(templates): block direct access to element 16 of TTuple

This commit is contained in:
_Redstone_c_ 2022-04-24 23:11:00 +08:00
parent ff59698fdc
commit 0ce3d9055b

View File

@ -58,9 +58,13 @@ struct TTupleElementType<0> { };
template <typename T, size_t Index> template <typename T, size_t Index>
struct TTupleElement struct TTupleElement
{ {
private:
using ValueType = T; using ValueType = T;
ValueType Value; ValueType Value;
public:
template <typename Type> template <typename Type>
constexpr TTupleElement(Type&& Arg) constexpr TTupleElement(Type&& Arg)
: Value(Forward<Type>(Arg)) : Value(Forward<Type>(Arg))