[Insight-developers] ITK with SunPro compilers
   
    Miller, James V (Research)
     
    millerjv@crd.ge.com
       
    Wed, 4 Sep 2002 13:19:35 -0400
    
    
  
> Excellent.  BTW, how would one access the constants in this situation:
> 
> template <typename TImage>
> class Foo: public Bar<TImage::ImageDimension>
> {};
> 
For these cases, I am still using a helper template class
template <typename TImage>
 class Foo: public Bar<::itk::GetImageDimension<TImage>::ImageDimension>
 {};
Do you know of a better way?  I moved the GetImageDimension helper to ImageBase.h