| 1 | namespace ns { |
| 2 | struct Bar {}; |
| 3 | } // namespace ns |
| 4 | |
| 5 | template <class T> struct Foo { |
| 6 | T t; |
| 7 | template <class U> class Nested { |
| 8 | U u; |
| 9 | }; |
| 10 | }; |
| 11 | |
| 12 | template <class T, class... Ss> class FooPack { |
| 13 | T t; |
| 14 | }; |
| 15 | |
| 16 | int main() { |
| 17 | Foo<char> t1; |
| 18 | Foo<int> t2; |
| 19 | Foo<Foo<int>> t3; |
| 20 | |
| 21 | FooPack<char> p1; |
| 22 | FooPack<int> p2; |
| 23 | FooPack<Foo<int>> p3; |
| 24 | FooPack<char, int> p4; |
| 25 | FooPack<char, float> p5; |
| 26 | FooPack<int, int> p6; |
| 27 | FooPack<int, int, int> p7; |
| 28 | |
| 29 | Foo<int>::Nested<char> n1; |
| 30 | Foo<int>::Nested<ns::Bar> n2; |
| 31 | // Set breakpoint here |
| 32 | } |
| 33 | |