[Insight-developers] itkTypeMacro

Brad King brad.king@kitware.com
Wed, 7 Mar 2001 14:37:42 -0500 (EST)


Hello all,

I have noticed warnings about classes with virtual functions but no
virtual destructor.  The problem comes from the use of itkTypeMacro in
these classes.  The macro is designed for use only in classes that are
part of the itk::LightObject hierarchy.  Classes like itk::Vector should
not use the macro because they are not subclasses of the light object.  
If anyone has written any classes with this problem, please remove the
macro from them.  This will clear up several warnings from the dashboard.

Thanks,
-Brad