/* -*- C++ -*- */ /************************************************************************* * Copyright(c) 1995~2005 Masaharu Goto (root-cint@cern.ch) * * For the licensing terms see the file COPYING * ************************************************************************/ #include #ifdef __hpux #include #else #include using namespace std; #endif template class A { public: A(T in) { a = in; } T a; void disp() { cout << "a=" << a << "\n"; } }; typedef A Auint; typedef A Aulong; void test1() { Auint a = Auint(3229); Auint b = A (3228); Aulong c(3227); cout << "a.Auint::a=" << a.Auint::a << "\n"; a.disp(); cout << "b.Auint::a=" << b.Auint::a << "\n"; b.disp(); c.disp(); } int main() { test1(); return 0; }