Boost logo

Boost Users :

From: Conway Allen (Allen.Conway_at_[hidden])
Date: 2006-03-17 12:46:53


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.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net