/* -*- C++ -*- */ /************************************************************************* * Copyright(c) 1995~2005 Masaharu Goto (root-cint@cern.ch) * * For the licensing terms see the file COPYING * ************************************************************************/ #ifdef __hpux #include #else #include using namespace std; #endif template class A { T t; E e; public: A(T tin,E ein) { t=tin; e=ein; } void disp() { cout << "t=" << t << " e=" << e << endl; } }; template void f(A& x) { x.disp(); } int main() { A y('a',3229); A z(3.14,"abcdef"); f(y); f(z); return 0; }