Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Essential type of enumerated constants
#2
The example you cited is showing usage of anonymous enums, which are treated as "essentially signed" type and, thus, can be mixed with int.

However, your example "enum list" is a named enum, causing it to be "essentially enum" type, which severely reduces its allowable operations. If your example were instead
Code:
enum {
ONE,
TWO,
THREE
};
I believe it would be compliant.
<t></t>


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)