length() member functions are constexpr #657

This commit is contained in:
Christophe Riccio
2017-07-24 12:01:44 +02:00
parent 50a527c97d
commit 1b78e2b681
16 changed files with 73 additions and 72 deletions

View File

@@ -70,7 +70,7 @@ namespace glm
typedef length_t length_type;
/// Return the count of components of a quaternion
GLM_FUNC_DECL static length_type length(){return 4;}
GLM_FUNC_DECL static GLM_CONSTEXPR length_type length(){return 4;}
GLM_FUNC_DECL T & operator[](length_type i);
GLM_FUNC_DECL T const & operator[](length_type i) const;