Scoped Enumerations
In C++03, enumerations are declared as follows: enum Suit { Hearts, Diamonds, Clubs, Spades }; Suit suit = Hearts; As can be seen, Hearts is in the global namespace. This could give rise to potential name collisions with other enums. Another issue is that it is difficult to find instances of a particular enum via … Read more