[Insight-developers] Borland C++ compiler and enums
Brad King
brad.king@kitware.com
Tue, 5 Feb 2002 10:26:23 -0500 (EST)
> We can defined a macro so code that looked like
> typedef Point<TScalarType, SpaceDimensions> InputPointType;
> becomes
> typedef Point<TScalarType, ITK_ENUM(SpaceDimensions)> InputPointType;
[snip]
> This would mean the ITK_ENUM could only be referenced within an ITK
> class declaration (where a valid Self is defined).
We could just always write Self:: in front of the argument instead of
using a macro (then the proper prefix could be used when it isn't in a
class). Is there another compiler that doesn't support this?
-Brad