6ab3fb262b
Add a helper to deduce the enum type of a value, and use an appropriate std::underlying_type<T> expression for that enum type. This avoids the need to repeat the type of the enum at the site of each cast, and moves the casts into the helper to make the callers easier to read. |
||
---|---|---|
.. | ||
2d | ||
3d | ||
arch | ||
editor | ||
include | ||
main | ||
maths | ||
mem | ||
misc | ||
music | ||
texmap | ||
ui | ||
unittest |