equal
deleted
inserted
replaced
|
1 //desc: test LCleanedup is used to declare a data member of a specialised 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 template<typename T> |
|
23 void func() |
|
24 { |
|
25 } |
|
26 template<> |
|
27 void func<TInt>() |
|
28 { |
|
29 static LCleanedupPtr<TT> member; //check:LCleanedup,temp<TInt> |
|
30 } |
|
31 |
|
32 }; |