I just noticed that you can not use standard math operators on an enum
such as ++
or +=
.
So what is the best way to iterate through all of the values in a C++ enum
?
I just noticed that you can not use standard math operators on an enum
such as ++
or +=
.
So what is the best way to iterate through all of the values in a C++ enum
?