refactor(templates): block direct access to element 16 of TTuple
This commit is contained in:
parent
ff59698fdc
commit
0ce3d9055b
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user