8
Is it a bad practice to have enums in c++ directly at namespace level? I mean not associated with any class? Say if I have an enum and a class that looks something like this,
enum Player { USER, COMPUTER}
class Game {
//Logic of the game.
};
So should I be declaring the Player enum as a member of game class? Should it be private?