Quote Originally Posted by master5001 View Post
Just use an anonymous enumeration (a fancy word for not giving it a name)

Example:
Code:
class state {
public:
  enum {
     Arkansas = 1,
     Alaska,
     California
  };
};
Tada!
How do you define it this way?
Code:
state blah = state::Alaska;
?