1 2 3 4 5 6 7 8 9 10 11 12 13
template <class T> struct A { template <class U> void f (U u); }; A<int> a; template <class T> template <class U> void A<T>::f (U u) { } main() { a.f (24); }