[Insight-users] Re: itk::SmartPointers and STL? (Luis Ibanez)
Luis Ibanez
luis.ibanez@kitware.com
Wed, 19 Mar 2003 17:15:36 -0500
Hi Parag,
Your images will be safer with the second instantiation.
That is, using SmartPointers.
In this way you can be more confident that the image
will be around even after the ImageFileReaders are
destroyed.
Luis
-------------
Parag Chandra wrote:
> Thanks Luis. So then should I declare my vector as:
>
> std::vector<ImageType*>
>
> or
>
> std::vector<ImageType::Pointer>
>
> ??