From bd2c7070d7274572c10cad73d082529026863939 Mon Sep 17 00:00:00 2001 From: Groove Date: Tue, 10 Jul 2018 23:04:19 +0200 Subject: [PATCH] Fixed build --- glm/detail/type_mat3x3.inl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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]; }