Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
10.5 Iterating over an enum
#3
Thank you for the reply.
It is disappointing that the standard does not allow iteration over an enum which has no gaps (as this is testable using a static analysis tool).
Relaxing this rule in future updates to the standard, to allow casting between an integer and a gap free enum, would be very useful.
<t>Dermot</t>
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)