I have a function template as below. The template argument needs to be explicitly given.
template<typename T>
void Func() {...};
I need to call this function for each type in a parameter pack:
template<typename... Inputs>
struct SetStruct{
void Set() {
// Call Func() here
}
};
Is there an easy way to expand the parameter pack? I tried:
Func<Inputs>()...;
and
Func<Inputs>...();
But none of them works.
I can only use C++11 :(