[Insight-developers] ITK with SunPro compilers
   
    Brad King
     
    brad.king@kitware.com
       
    Wed, 4 Sep 2002 13:15:46 -0400 (EDT)
    
    
  
> itkStaticConstMacro(name, type, value)
>
> When you need to use the "constant" as a template parameter, there is another
> macro to call (to get around differences between the compilers needed fully scoped
> paths to constants). Below is an example
>
>   itkStaticConstMacro(SpaceDimension, unsigned int, NDimensions);
>   typedef Vector<TScalarType,
>                  itkGetStaticConstMacro(SpaceDimension)>  InputVectorType;
Excellent.  BTW, how would one access the constants in this situation:
template <typename TImage>
class Foo: public Bar<TImage::ImageDimension>
{};
?
-Brad