How do I create a metafunction that takes any kind of function pointer? In the code below, how do I get rid of \"decltype(&f)\" ?
template
You can use this:
template void runFunc(FuncType functionPointer ) { functionPointer(); } runFunc(f);