equal
deleted
inserted
replaced
|
1 //desc: test LCleanedup is used to declare a data member of a common function of a specialised class |
|
2 //option: |
|
3 //date:2008-8-20 13:51:31 |
|
4 //author:pingorliu |
|
5 //type: CT |
|
6 |
|
7 template<class T> |
|
8 class base |
|
9 { |
|
10 }; |
|
11 template<class TT> |
|
12 struct temp:private base<TInt> |
|
13 { |
|
14 private: |
|
15 |
|
16 } mystruct; |
|
17 |
|
18 template<> |
|
19 struct temp<TInt>:private base<TInt> |
|
20 { |
|
21 private: |
|
22 void func() |
|
23 { |
|
24 static LCleanedupPtr<TT> member; //check:LCleanedup,func |
|
25 } |
|
26 |
|
27 }; |