[Insight-developers] statics on templated classes

Miller, James V (Research) millerjv at crd . ge . com
Fri, 23 Aug 2002 10:15:14 -0400


Fine with me.

> -----Original Message-----
> From: Bill Hoffman [mailto:bill.hoffman@kitware.com]
> Sent: Friday, August 23, 2002 10:01 AM
> To: insight-developers@public.kitware.com
> Subject: [Insight-developers] statics on templated classes
> 
> 
> OK, now GetSpacing is killing the sun compiler and the mac 
> OSX compiler.
> I would suggest that we add a proper Get/SetSpacing to itkImageBase.
> I really do not think saving n doubles (where n is the 
> dimension of the image)
> per image instance is worth have these global statics around.   
> (Same goes for GetOrigin)
> 
> 
> ....Code/Common/itkImageBase.txx, line 66: Error: An integer 
> constant expression is required within the array subscript operator
> 
> 
> I think we need to remove all the statics in templated classes in ITK.
> It is a tricky problem for compilers, and it means that any 
> use of shared
> libraries or DLL's will never work.
> 
> If we did that, MacOSX 10.2 would compile ITK.   Also, I 
> think that the sunpro 7 compiler
> would work.  
> 
> 
> -Bill
> 
> _______________________________________________
> Insight-developers mailing list
> Insight-developers@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-developers
>