
consider the following program:
template <typename T>
void function_template(T value)
{
std::cout << __PRETTY_FUNCTION__ << std::endl;
}
struct function_template_wrapper
{
template <typename T> static void call(T value)
{
function_template<T>(value);
}
};
int main(int argc, char* argv[])
{
int i;
function_template_wrapper::call<int>(i);
}
Is it possible to somehow parameterize the struct function_template_wrapper
such that I can pass function_template as a parameter?
E.g. function_template_wrapper