|
From: Ioannis V. <no...@ho...> - 2003-01-28 01:08:28
|
-------Original Message-------=0D =0D From: Per Westermark=0D Date: =D4=F1=DF=F4=E7, 28 =C9=E1=ED=EF=F5=DC=F1=E9=EF=F2 2003 3:01:54 =F0= =EC=0D To: Ioannis Vranos=0D Cc: dev...@li...=0D Subject: Re: [Dev-C++] STL::Vector=0D =0D One point about putting a 'naked' pointer into different kind of=0D containers, is that the pointer doesn't have a destructor to release the=0D referenced memory.=0D =0D /Per W=0D =0D =0D =3D=3D> I agree with that, including built in arrays. So he must delete o= bjects pointed by pointers manually. This doesn't mean anything however against using vectors of pointers in place of built in arrays with pointers.=0D =0D =0D Ioannis Vranos=0D =0D * Programming pages: http://www.noicys.freeurl.com=0D * Alternative URL: http://run.to/noicys=20 |