[Insight-developers] ITK with SunPro compilers
Brad King
brad.king@kitware.com
Wed, 4 Sep 2002 13:48:03 -0400 (EDT)
> > 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
Unfortunately, no. I don't think it is too bad, though. At least it
isn't a macro.
-Brad