хочу написать функцию, которая принимает другую указатель на другую функцию и выводит тип принимаемых параметров.
#include <iostream>
#include <typeinfo>
using namespace std;
inline void boo() {}
template <typename first, typename... other> void boo(first fst, other... Other)
{
cout << typeid(first).name() << endl;
boo(Other...);
}
template<typename R,typename ... args>
void foo(R(*ptr)(args... xc))
{
boo(xc...);
}
void xf(int a, int b) {}
int main()
{
foo(xf);
return 0;
}