| 1 | template <int TID> class Test { |
| 2 | public: template <template <int> class TClass> void func(typename TClass<TID>::Type x) {}; |
| 3 | }; |
| 4 | |
| 5 | template <int> class A { |
| 6 | public: typedef double Type; |
| 7 | }; |
| 8 | |
| 9 | int main() { |
| 10 | double x = 1; |
| 11 | Test<1> t; |
| 12 | t.func<A>(x); |
| 13 | } |