I'm having trouble putting this stuff into some kind of struct.

Code:

const CGFloat North = 0;
const CGFloat East = M_PI/2;
const CGFloat West = -M_PI/2;
const CGFloat SouthPositive = M_PI;
const CGFloat SouthNegative = -M_PI;
const CGFloat NNE = M_PI/4;
const CGFloat NNW = -M_PI/4;
const CGFloat SSE = M_PI - (M_PI/4);
const CGFloat SSW = -M_PI + (M_PI/4);

like so

Code:

typedef enum {
North = 0,
East = M_PI/2,
West = -M_PI/2,
SouthPositive = M_PI,
SouthNegative = -M_PI,
NNE = M_PI/4,
NNW = -M_PI/4,
SSE = M_PI - (M_PI/4),
SSW = -M_PI + (M_PI/4),
} Foo;

West, SouthNegative, NNW and SSW are giving errors 'expression is not an integer constant expression'.

What's the deal?