diff --git a/glm/detail/type_mat3x3.inl b/glm/detail/type_mat3x3.inl index 60beeb17..b12f9f9f 100644 --- a/glm/detail/type_mat3x3.inl +++ b/glm/detail/type_mat3x3.inl @@ -250,7 +250,9 @@ namespace glm template GLM_FUNC_QUALIFIER GLM_CONSTEXPR_CXX11 typename mat<3, 3, T, Q>::col_type const& mat<3, 3, T, Q>::operator[](typename mat<3, 3, T, Q>::length_type i) const { - assert(i < this->length()); +# if GLM_HAS_CONSTEXPR_CXX14 + assert(i < this->length()); +# endif return this->value[i]; }