#include <iostream> #include <typeinfo> using namespace std; template <class T> class Foo { public: void show() { cout << typeid(Foo<T>).name() << endl; } }; int main() { Foo<int> foo; Foo<Foo<int>> bar; cout << typeid(foo).name() << endl; cout << typeid(bar).name() << endl; return 0; }
class Foo
class Foo>