1 #include <iostream>
2 using namespace std;
3 template < typename A, typename B>
4 class test
5 {
6 public:
7 test();
8 ~test();
9 int gX();
10 };
11 template < typename A, typename B>
12 test< A, B >::test()
13 {
14 }
15 template < typename A, typename B>
16 test< A, B >::~test()
17 {
18 }
19 template < typename A, typename B>
20 int test< A, B >::gX()
21 {
22 cout<< sizeof(A)<<endl;
23 cout<< sizeof(B)<<endl;
24 return 0;
25 }
26 int main ( void )
27 {
28 test<int,char> x;
29 x.gX();
30 return 0;
31 }