Is it possible to decide in run-time which template function to call? Something like:
template<int I> struct A { static void foo() {/*...*/} }; void bar(int i) { A<i>::f(); // <-- ??? }