Enum without a variable name inside class header

+1 Çağlan Turgut · September 6, 2014
I've seen someone using that inside a class header as private:
enum{

VARIABLE1,

VARIABLE2

};


An enum without a name? Please, can someone explain what does is do? Is it just a list of ints? How can it be useful?

Post a Reply

Replies

Oldest  Newest  Rating
0 Çağlan Turgut · September 7, 2014
Oh, thank you, I think I understood the concept now. :)
  • 1

C++

107,272 followers
About

Used in many types of software including music players, video games, and many large scale applications.

Links
Moderators
Bucky Roberts Administrator