/* -*- C++ -*- */ /************************************************************************* * Copyright(c) 1995~2005 Masaharu Goto (root-cint@cern.ch) * * For the licensing terms see the file COPYING * ************************************************************************/ #ifndef T928_H #define T928_H #include #include using namespace std; template class A { public: T ddd; template void f(void) { T t; E e; printf("void A<%s>::f<%s>(void)\n",typeid(t).name(),typeid(e).name()); } template void g(E& e) { T t; printf("void A<%s>::e(%s&)\n",typeid(t).name(),typeid(e).name()); } void x() { f(); } }; class B { public: }; //void A::f(void); //void A::f(void); template void F(void) { E e; printf("void ::F<%s>(void)\n",typeid(e).name()); } void f() { A x; x.f(); F(); } #ifndef T928A #ifdef __MAKECINT__ #pragma link C++ function A::f; #pragma link C++ function A::f; #pragma link C++ function A::f(); #pragma link C++ function A::f(); #pragma link C++ function A::g(B); #pragma link C++ function A::g(int); #endif #endif #endif