是否可以在运行时决定调用哪个模板函数?就像是:
template<int I> struct A { static void foo() {/*...*/} }; void bar(int i) { A<i>::f(); // <-- ??? }
c++ templates c++11
c++ ×1
c++11 ×1
templates ×1