[Insight-developers] Borland C++ compiler and enums
Miller, James V (CRD)
millerjv@crd.ge.com
Tue, 5 Feb 2002 10:35:01 -0500
VC++ does not like
typedef Point<TScalarType, (Self::SpaceDimensions)> InputPointType;
-----Original Message-----
From: Brad King [mailto:brad.king@kitware.com]
Sent: Tuesday, February 05, 2002 10:26 AM
To: Miller, James V (CRD)
Cc: Insight-developers (E-mail)
Subject: RE: [Insight-developers] Borland C++ compiler and enums
> 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