[Insight-developers] itk::AutoPointer

Brad King brad.king at kitware.com
Thu, 04 Mar 2004 17:44:00 -0500


Miller, James V (Research) wrote:

> Is there a limitation on the types of objects itk::AutoPointer<T> can 
> operate on?
>  
> It looks as though it requires an object that has a method Print(). 
> Which would seem to limit it to ITK objects.
>  
> I was hoping that I could use an itk::AutoPointer<std:vector<T> >
>  
> On as side note, I also had a problem 
> compiling itk::AutoPointer<>::operator=(AutoPointer()) when my type was 
> a pointer to an std::vector<>

I'm pretty sure itk::AutoPointer<> was intended for ITK objects just 
like itk::SmartPointer<>.  Can you use

   std::auto_ptr< std::vector<> >

?

-Brad