
17 Mar
2006
17 Mar
'06
5:46 p.m.
The following, I suppose, produces a memory leak... is there any way to avoid this? Don't use variant with pointers... ? variant<T1*,T2*> vt; vt = new T1; vt = new T2; Thanks, Allen.