From 1ef3e5a2009a85f44d4ec5a0884ef615e91efc95 Mon Sep 17 00:00:00 2001 From: Yuri Kilochek Date: Tue, 26 Dec 2017 19:42:12 +0300 Subject: [PATCH] `components`, `cols`, `rows` are no longer defined as members of anonymous enums and are now instead static integral constants of type `glm::length_t` (this appears to be current approach). --- glm/gtx/type_trait.hpp | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/glm/gtx/type_trait.hpp b/glm/gtx/type_trait.hpp index 0f14f308..637bbd19 100644 --- a/glm/gtx/type_trait.hpp +++ b/glm/gtx/type_trait.hpp @@ -47,10 +47,7 @@ namespace glm static bool const is_vec = true; static bool const is_mat = false; static bool const is_quat = false; - enum - { - components = L - }; + static length_t const components = L; }; template @@ -70,10 +67,7 @@ namespace glm static bool const is_vec = false; static bool const is_mat = false; static bool const is_quat = true; - enum - { - components = 4 - }; + static length_t const components = 4; }; template @@ -82,10 +76,7 @@ namespace glm static bool const is_vec = false; static bool const is_mat = false; static bool const is_quat = true; - enum - { - components = 8 - }; + static length_t const components = 8; }; /// @}