[Insight-developers] statics on templated classes

Bill Hoffman bill . hoffman at kitware . com
Fri, 23 Aug 2002 10:32:22 -0400


I was just going to do a simple double* to keep the same interface.

-Bill


At 10:16 AM 8/23/2002 -0400, Stephen R. Aylward wrote:
>So Spacing would be an itkVector and Origin would be an itkPoint?
>
>Stephen
>
>Bill Hoffman wrote:
>
>>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
>
>
>-- 
>===============================================
>Dr. Stephen R. Aylward
>Assistant Professor of Radiology
>Adjunct Assistant Professor of Computer Science
>http://caddlab.rad.unc.edu
>aylward@unc.edu
>(919) 966-9695
>
>_______________________________________________
>Insight-developers mailing list
>Insight-developers@public.kitware.com
>http://public.kitware.com/mailman/listinfo/insight-developers