[Insight-developers] ITK with SunPro compilers

Brad King brad . king at kitware . com
Fri, 30 Aug 2002 15:26:34 -0400 (EDT)


> I assume we could away with
>
> ITK_CONST_INT(name, value);
>
> Should be abstract this a level further? For instance, ITK_INT_TRAIT()
> or something like that?

The type might not always be int.  I suggest we follow boost's approach:

ITK_STATIC_CONST(type, assignment);

becomes either

static const type assignment;

or

enum { assignment };

Usage would look like this:

ITK_STATIC_CONST(int, ImageDimension = VImageDimension);
ITK_STATIC_CONST(unsigned long, Length = VLength);

-Brad