diff --git a/glm/detail/type_mat2x2.hpp b/glm/detail/type_mat2x2.hpp index d51389b1..e7fde26f 100644 --- a/glm/detail/type_mat2x2.hpp +++ b/glm/detail/type_mat2x2.hpp @@ -69,7 +69,7 @@ namespace glm // -- Accesses -- typedef length_t length_type; - GLM_FUNC_DECL GLM_CONSTEXPR length_type length() const; + GLM_FUNC_DECL static length_type length(){return 2;} GLM_FUNC_DECL col_type & operator[](length_type i); GLM_FUNC_DECL col_type const & operator[](length_type i) const; diff --git a/glm/detail/type_mat2x2.inl b/glm/detail/type_mat2x2.inl index 92940eff..02c5ee8b 100644 --- a/glm/detail/type_mat2x2.inl +++ b/glm/detail/type_mat2x2.inl @@ -154,12 +154,6 @@ namespace glm // -- Accesses -- - template - GLM_FUNC_QUALIFIER GLM_CONSTEXPR typename tmat2x2::length_type tmat2x2::length() const - { - return 2; - } - template GLM_FUNC_QUALIFIER typename tmat2x2::col_type & tmat2x2::operator[](typename tmat2x2::length_type i) { diff --git a/glm/detail/type_mat2x3.hpp b/glm/detail/type_mat2x3.hpp index 0b48727a..db558863 100644 --- a/glm/detail/type_mat2x3.hpp +++ b/glm/detail/type_mat2x3.hpp @@ -70,7 +70,7 @@ namespace glm // -- Accesses -- typedef length_t length_type; - GLM_FUNC_DECL GLM_CONSTEXPR length_type length() const; + GLM_FUNC_DECL static length_type length(){return 2;} GLM_FUNC_DECL col_type & operator[](length_type i); GLM_FUNC_DECL col_type const & operator[](length_type i) const; diff --git a/glm/detail/type_mat2x3.inl b/glm/detail/type_mat2x3.inl index 8b13f8ba..b0f8337c 100644 --- a/glm/detail/type_mat2x3.inl +++ b/glm/detail/type_mat2x3.inl @@ -154,12 +154,6 @@ namespace glm // -- Accesses -- - template - GLM_FUNC_QUALIFIER GLM_CONSTEXPR typename tmat2x3::length_type tmat2x3::length() const - { - return 2; - } - template GLM_FUNC_QUALIFIER typename tmat2x3::col_type & tmat2x3::operator[](typename tmat2x3::length_type i) { diff --git a/glm/detail/type_mat2x4.hpp b/glm/detail/type_mat2x4.hpp index 741968e3..c9d195f7 100644 --- a/glm/detail/type_mat2x4.hpp +++ b/glm/detail/type_mat2x4.hpp @@ -72,7 +72,7 @@ namespace glm // -- Accesses -- typedef length_t length_type; - GLM_FUNC_DECL GLM_CONSTEXPR length_type length() const; + GLM_FUNC_DECL static length_type length(){return 2;} GLM_FUNC_DECL col_type & operator[](length_type i); GLM_FUNC_DECL col_type const & operator[](length_type i) const; diff --git a/glm/detail/type_mat2x4.inl b/glm/detail/type_mat2x4.inl index 47fd9fad..74af34c6 100644 --- a/glm/detail/type_mat2x4.inl +++ b/glm/detail/type_mat2x4.inl @@ -155,12 +155,6 @@ namespace glm // -- Accesses -- - template - GLM_FUNC_QUALIFIER GLM_CONSTEXPR typename tmat2x4::length_type tmat2x4::length() const - { - return 2; - } - template GLM_FUNC_QUALIFIER typename tmat2x4::col_type & tmat2x4::operator[](typename tmat2x4::length_type i) { diff --git a/glm/detail/type_mat3x2.hpp b/glm/detail/type_mat3x2.hpp index 5d20fd8e..8549745e 100644 --- a/glm/detail/type_mat3x2.hpp +++ b/glm/detail/type_mat3x2.hpp @@ -77,7 +77,7 @@ namespace glm // -- Accesses -- typedef length_t length_type; - GLM_FUNC_DECL GLM_CONSTEXPR length_type length() const; + GLM_FUNC_DECL static length_type length(){return 3;} GLM_FUNC_DECL col_type & operator[](length_type i); GLM_FUNC_DECL col_type const & operator[](length_type i) const; diff --git a/glm/detail/type_mat3x2.inl b/glm/detail/type_mat3x2.inl index af0c768a..2a1b8bd6 100644 --- a/glm/detail/type_mat3x2.inl +++ b/glm/detail/type_mat3x2.inl @@ -184,12 +184,6 @@ namespace glm // -- Accesses -- - template - GLM_FUNC_QUALIFIER GLM_CONSTEXPR typename tmat3x2::length_type tmat3x2::length() const - { - return 3; - } - template GLM_FUNC_QUALIFIER typename tmat3x2::col_type & tmat3x2::operator[](typename tmat3x2::length_type i) { diff --git a/glm/detail/type_mat3x3.hpp b/glm/detail/type_mat3x3.hpp index 25e3a49a..d5ebe629 100644 --- a/glm/detail/type_mat3x3.hpp +++ b/glm/detail/type_mat3x3.hpp @@ -76,7 +76,7 @@ namespace glm // -- Accesses -- typedef length_t length_type; - GLM_FUNC_DECL GLM_CONSTEXPR length_type length() const; + GLM_FUNC_DECL static length_type length(){return 3;} GLM_FUNC_DECL col_type & operator[](length_type i); GLM_FUNC_DECL col_type const & operator[](length_type i) const; diff --git a/glm/detail/type_mat3x3.inl b/glm/detail/type_mat3x3.inl index aec8e196..324cca32 100644 --- a/glm/detail/type_mat3x3.inl +++ b/glm/detail/type_mat3x3.inl @@ -186,12 +186,6 @@ namespace glm // -- Accesses -- - template - GLM_FUNC_QUALIFIER GLM_CONSTEXPR typename tmat3x3::length_type tmat3x3::length() const - { - return 3; - } - template GLM_FUNC_QUALIFIER typename tmat3x3::col_type & tmat3x3::operator[](typename tmat3x3::length_type i) { diff --git a/glm/detail/type_mat3x4.hpp b/glm/detail/type_mat3x4.hpp index 76e71694..c5bb9a9b 100644 --- a/glm/detail/type_mat3x4.hpp +++ b/glm/detail/type_mat3x4.hpp @@ -77,7 +77,7 @@ namespace glm // -- Accesses -- typedef length_t length_type; - GLM_FUNC_DECL GLM_CONSTEXPR length_type length() const; + GLM_FUNC_DECL static length_type length(){return 3;} GLM_FUNC_DECL col_type & operator[](length_type i); GLM_FUNC_DECL col_type const & operator[](length_type i) const; diff --git a/glm/detail/type_mat3x4.inl b/glm/detail/type_mat3x4.inl index 7f55e9a5..3596f267 100644 --- a/glm/detail/type_mat3x4.inl +++ b/glm/detail/type_mat3x4.inl @@ -184,12 +184,6 @@ namespace glm // -- Accesses -- - template - GLM_FUNC_QUALIFIER GLM_CONSTEXPR typename tmat3x4::length_type tmat3x4::length() const - { - return 3; - } - template GLM_FUNC_QUALIFIER typename tmat3x4::col_type & tmat3x4::operator[](typename tmat3x4::length_type i) { diff --git a/glm/detail/type_mat4x2.hpp b/glm/detail/type_mat4x2.hpp index 53a5d078..a899d943 100644 --- a/glm/detail/type_mat4x2.hpp +++ b/glm/detail/type_mat4x2.hpp @@ -82,7 +82,7 @@ namespace glm // -- Accesses -- typedef length_t length_type; - GLM_FUNC_DECL GLM_CONSTEXPR length_type length() const; + GLM_FUNC_DECL static length_type length(){return 4;} GLM_FUNC_DECL col_type & operator[](length_type i); GLM_FUNC_DECL col_type const & operator[](length_type i) const; diff --git a/glm/detail/type_mat4x2.inl b/glm/detail/type_mat4x2.inl index cbf1b348..6d83229c 100644 --- a/glm/detail/type_mat4x2.inl +++ b/glm/detail/type_mat4x2.inl @@ -213,12 +213,6 @@ namespace glm // -- Accesses -- - template - GLM_FUNC_QUALIFIER GLM_CONSTEXPR typename tmat4x2::length_type tmat4x2::length() const - { - return 4; - } - template GLM_FUNC_QUALIFIER typename tmat4x2::col_type & tmat4x2::operator[](typename tmat4x2::length_type i) { diff --git a/glm/detail/type_mat4x3.hpp b/glm/detail/type_mat4x3.hpp index 15c328e6..c696735f 100644 --- a/glm/detail/type_mat4x3.hpp +++ b/glm/detail/type_mat4x3.hpp @@ -82,7 +82,7 @@ namespace glm // -- Accesses -- typedef length_t length_type; - GLM_FUNC_DECL GLM_CONSTEXPR length_type length() const; + GLM_FUNC_DECL static length_type length(){return 4;} GLM_FUNC_DECL col_type & operator[](length_type i); GLM_FUNC_DECL col_type const & operator[](length_type i) const; diff --git a/glm/detail/type_mat4x3.inl b/glm/detail/type_mat4x3.inl index 2aa8289c..cfb408b3 100644 --- a/glm/detail/type_mat4x3.inl +++ b/glm/detail/type_mat4x3.inl @@ -206,12 +206,6 @@ namespace glm // -- Accesses -- - template - GLM_FUNC_QUALIFIER GLM_CONSTEXPR typename tmat4x3::length_type tmat4x3::length() const - { - return 4; - } - template GLM_FUNC_QUALIFIER typename tmat4x3::col_type & tmat4x3::operator[](typename tmat4x3::length_type i) { diff --git a/glm/detail/type_mat4x4.hpp b/glm/detail/type_mat4x4.hpp index d0043944..2222d10e 100644 --- a/glm/detail/type_mat4x4.hpp +++ b/glm/detail/type_mat4x4.hpp @@ -81,7 +81,7 @@ namespace glm // -- Accesses -- typedef length_t length_type; - GLM_FUNC_DECL GLM_CONSTEXPR length_type length() const; + GLM_FUNC_DECL static length_type length(){return 4;} GLM_FUNC_DECL col_type & operator[](length_type i); GLM_FUNC_DECL col_type const & operator[](length_type i) const; diff --git a/glm/detail/type_mat4x4.inl b/glm/detail/type_mat4x4.inl index 81b27503..9fc572ea 100644 --- a/glm/detail/type_mat4x4.inl +++ b/glm/detail/type_mat4x4.inl @@ -236,12 +236,6 @@ namespace glm // -- Accesses -- - template - GLM_FUNC_QUALIFIER GLM_CONSTEXPR typename tmat4x4::length_type tmat4x4::length() const - { - return 4; - } - template GLM_FUNC_QUALIFIER typename tmat4x4::col_type & tmat4x4::operator[](typename tmat4x4::length_type i) { diff --git a/glm/detail/type_vec1.hpp b/glm/detail/type_vec1.hpp index dd673a7c..0d54ae00 100644 --- a/glm/detail/type_vec1.hpp +++ b/glm/detail/type_vec1.hpp @@ -75,7 +75,7 @@ namespace glm /// Return the count of components of the vector typedef length_t length_type; - GLM_FUNC_DECL GLM_CONSTEXPR length_type length() const; + GLM_FUNC_DECL static length_type length(){return 1;} GLM_FUNC_DECL T & operator[](length_type i); GLM_FUNC_DECL T const & operator[](length_type i) const; diff --git a/glm/detail/type_vec1.inl b/glm/detail/type_vec1.inl index 56f6b25b..3c872958 100644 --- a/glm/detail/type_vec1.inl +++ b/glm/detail/type_vec1.inl @@ -66,12 +66,6 @@ namespace glm // -- Component accesses -- - template - GLM_FUNC_QUALIFIER GLM_CONSTEXPR typename tvec1::length_type tvec1::length() const - { - return 1; - } - template GLM_FUNC_QUALIFIER T & tvec1::operator[](typename tvec1::length_type i) { diff --git a/glm/detail/type_vec2.hpp b/glm/detail/type_vec2.hpp index 9a9ef42d..879b9e5e 100644 --- a/glm/detail/type_vec2.hpp +++ b/glm/detail/type_vec2.hpp @@ -76,7 +76,7 @@ namespace glm /// Return the count of components of the vector typedef length_t length_type; - GLM_FUNC_DECL GLM_CONSTEXPR length_type length() const; + GLM_FUNC_DECL GLM_CONSTEXPR length_type length(){return 2;} GLM_FUNC_DECL T & operator[](length_type i); GLM_FUNC_DECL T const & operator[](length_type i) const; diff --git a/glm/detail/type_vec2.inl b/glm/detail/type_vec2.inl index d10f96e6..ae372541 100644 --- a/glm/detail/type_vec2.inl +++ b/glm/detail/type_vec2.inl @@ -97,12 +97,6 @@ namespace glm // -- Component accesses -- - template - GLM_FUNC_QUALIFIER GLM_CONSTEXPR typename tvec2::length_type tvec2::length() const - { - return 2; - } - template GLM_FUNC_QUALIFIER T & tvec2::operator[](typename tvec2::length_type i) { diff --git a/glm/detail/type_vec3.hpp b/glm/detail/type_vec3.hpp index ebd135d6..4fcb9643 100644 --- a/glm/detail/type_vec3.hpp +++ b/glm/detail/type_vec3.hpp @@ -76,7 +76,7 @@ namespace glm /// Return the count of components of the vector typedef length_t length_type; - GLM_FUNC_DECL GLM_CONSTEXPR length_type length() const; + GLM_FUNC_DECL static length_type length(){return 3;} GLM_FUNC_DECL T & operator[](length_type i); GLM_FUNC_DECL T const & operator[](length_type i) const; diff --git a/glm/detail/type_vec3.inl b/glm/detail/type_vec3.inl index cc0424fb..df9b2ad7 100644 --- a/glm/detail/type_vec3.inl +++ b/glm/detail/type_vec3.inl @@ -139,12 +139,6 @@ namespace glm // -- Component accesses -- - template - GLM_FUNC_QUALIFIER GLM_CONSTEXPR typename tvec3::length_type tvec3::length() const - { - return 3; - } - template GLM_FUNC_QUALIFIER T & tvec3::operator[](typename tvec3::length_type i) { diff --git a/glm/gtc/quaternion.hpp b/glm/gtc/quaternion.hpp index 72d06037..8af1c8bf 100644 --- a/glm/gtc/quaternion.hpp +++ b/glm/gtc/quaternion.hpp @@ -71,7 +71,7 @@ namespace glm typedef length_t length_type; /// Return the count of components of a quaternion - GLM_FUNC_DECL GLM_CONSTEXPR length_type length() const; + GLM_FUNC_DECL static length_type length(){return 4;} GLM_FUNC_DECL T & operator[](length_type i); GLM_FUNC_DECL T const & operator[](length_type i) const; diff --git a/glm/gtc/quaternion.inl b/glm/gtc/quaternion.inl index f062b0a6..c9b2af73 100644 --- a/glm/gtc/quaternion.inl +++ b/glm/gtc/quaternion.inl @@ -67,12 +67,6 @@ namespace detail // -- Component accesses -- - template - GLM_FUNC_QUALIFIER GLM_CONSTEXPR typename tquat::length_type tquat::length() const - { - return 4; - } - template GLM_FUNC_QUALIFIER T & tquat::operator[](typename tquat::length_type i) { diff --git a/glm/gtx/dual_quaternion.hpp b/glm/gtx/dual_quaternion.hpp index a64c7df7..4d7b61e3 100644 --- a/glm/gtx/dual_quaternion.hpp +++ b/glm/gtx/dual_quaternion.hpp @@ -46,7 +46,7 @@ namespace glm typedef length_t length_type; /// Return the count of components of a dual quaternion - GLM_FUNC_DECL GLM_CONSTEXPR length_type length() const; + GLM_FUNC_DECL static length_type length(){return 2;} GLM_FUNC_DECL part_type & operator[](length_type i); GLM_FUNC_DECL part_type const & operator[](length_type i) const; diff --git a/glm/gtx/dual_quaternion.inl b/glm/gtx/dual_quaternion.inl index c93c9691..c3f2bc62 100644 --- a/glm/gtx/dual_quaternion.inl +++ b/glm/gtx/dual_quaternion.inl @@ -8,12 +8,6 @@ namespace glm { // -- Component accesses -- - template - GLM_FUNC_QUALIFIER GLM_CONSTEXPR typename tdualquat::length_type tdualquat::length() const - { - return 2; - } - template GLM_FUNC_QUALIFIER typename tdualquat::part_type & tdualquat::operator[](typename tdualquat::length_type i) {