diff --git a/encoder/basisu_math.h b/encoder/basisu_math.h index 3e56747b..d4aa219a 100644 --- a/encoder/basisu_math.h +++ b/encoder/basisu_math.h @@ -35,10 +35,7 @@ namespace bu_math { public: typedef T scalar_type; - enum - { - num_elements = N - }; + static constexpr uint32_t num_elements = N; inline vec() { @@ -1186,11 +1183,8 @@ namespace bu_math { public: typedef T scalar_type; - enum - { - num_rows = R, - num_cols = C - }; + static constexpr uint32_t num_rows = R; + static constexpr uint32_t num_cols = C; typedef vec col_vec; typedef vec < (R > 1) ? (R - 1) : 0, T > subcol_vec;