ForEach over Enums

When I was reading this solution I was confused. Then I tried this out of curiosity:
Add ENUM_RANGE_BY_COUNT(ESomeType, ESomeType::Three) to your header file, just above the class definition.

Then Use the second part of the code anywhere you want (obviously in your cpp file).
You’re done!

2 Likes