/* -*- C++ -*- */ /************************************************************************* * Copyright(c) 1995~2005 Masaharu Goto (root-cint@cern.ch) * * For the licensing terms see the file COPYING * ************************************************************************/ // From berlich@pc66.mppmu.mpg.de Mon May 13 11:44 JST 1996 #ifdef __hpux #include #else #include using namespace std; #endif template void printstatement(tp stm) { cout << "Argument is : " << stm << endl; } class test { public: test(void){printstatement("This is a very long string");} }; template class test2 { public: test2(tp2); }; template test2::test2(tp2 stm) { cout << "Argument is : " << stm << endl; } int main(void) { test *Test=new test; delete Test; test2* Test2=new test2("This is another long string"); delete Test2; return 0; }