I know the types of the variadic arguments so I am trying to store them in a pre-defined tuple
.
Here is my code:
class data
{
public:
std::tuple<unsigned long long, char, unsigned short, bool, unsigned int, int, float, double, std::string> tpl;
};
data d;
template<typename...Args>
void func(Args...args)
{
// stores the arguments in d.tpl
}
int main()
{
func(234, 'g', 34.8f, "Hello World!");
}