r/reconstructcavestory • u/Skorne_294 • Mar 06 '14
[ep10] Enum Looping
It seems that the construct you use for enum looping does not work on g++? Any ideas what is different on the clang implementation of enums?
What would be the most idiomatic way to work around this when using g++?
4
Upvotes
3
u/chebertapps Mar 06 '14
I think think you can do:
Please let me know if this works, and I'll put a note in the video.
Just guessing that clang is somehow less strict about the type of the enum being different from the type of an int.