>>24
確実にコンパイルできる方法

template <class T> struct foo{ static void bar(){/*hoge*/} };

void (*pf)();
pf=foo<int>::bar;