/* -*- C++ -*- */ /************************************************************************* * Copyright(c) 1995~2005 Masaharu Goto (root-cint@cern.ch) * * For the licensing terms see the file COPYING * ************************************************************************/ #include #if 0 template struct A { T a; }; #else template struct A { typename T::x a; }; // template specialization template struct A { T a; }; #endif class C { public: typedef int x; }; A a; A b; int main() { a.a = 'a'; b.a = 123; printf("a.a=%c b.a=%d\n",a.a,b.a); return 0; }