Код: Выделить всё
struct A {
template
void a() {}
template
void b() {}
template
void for_each_type() {
Fn();
Fn();
Fn();
...
}
};
int main() {
A obj;
// This doesn't compile
// obj.for_each_type();
// obj.for_each_type();
}
Подробнее здесь: https://stackoverflow.com/questions/793 ... -parameter