Suppose that we have classes:
class A
{
public:
static void m() {}
}
class B
{
public:
static void m() {}
}
template<typename... T>
class C
{
public:
void c()
{
T::m(); // Call somehow m() of A and B, if T is a parameter pack of A and B
}
}
How I can expand parameter pack and call static method for each type?