template inline void f(const T1&,const T2&) { } template struct A { template void g(T& i) { } }; int main() { int i; A a; a.g(i); }