Jan 4, 2022 at 11:06pm Jan 4, 2022 at 11:06pm UTC
Hi,
I have this class:
1 2 3 4 5 6
template <typename Target, typename ...RefBy>
struct TableDef
{
static Target target;
static std::tuple<RefBy...> reference_list;
};
How do I copy the variadic template RefBy into the tuple reference_list?
Regards,
Juan
Last edited on Jan 4, 2022 at 11:10pm Jan 4, 2022 at 11:10pm UTC
Jan 5, 2022 at 12:23pm Jan 5, 2022 at 12:23pm UTC
But reference_list is static and there is no constructor in the class?? Could you be more specific?
Also, I am already expanding the variadic in reference_list definition is this not enough?
Last edited on Jan 5, 2022 at 12:25pm Jan 5, 2022 at 12:25pm UTC
Jan 5, 2022 at 12:56pm Jan 5, 2022 at 12:56pm UTC
What does this mean? 'copy the variadic template RefBy into the tuple reference_list'
The tuple reference_list is an object, RefBy is a parameter pack of types.
Copy a type to an object? Copy some number of types to an equivalent number of objects?
Jan 5, 2022 at 1:06pm Jan 5, 2022 at 1:06pm UTC
Let me think and test some things and I will get at you with a more concise question. Thanks for now