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>
struct TTupleElement
{
private:
using ValueType = T;
ValueType Value;
public:
template <typename Type>
constexpr TTupleElement(Type&& Arg)
: Value(Forward<Type>(Arg))