From a43ace080b0d9a8109c8b47776784ead9e0b9bba Mon Sep 17 00:00:00 2001 From: Thaddeus Crews Date: Fri, 10 Oct 2025 11:17:20 -0500 Subject: [PATCH] Fix C++20 warning for deprecated enum operation --- encoder/basisu_math.h | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) 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;