make a bit more readable

This commit is contained in:
Tr1NgleDev 2024-11-02 17:38:34 +08:00
parent ce1448a903
commit 9097b1469b
3 changed files with 43 additions and 42 deletions

View File

@ -171,6 +171,7 @@ namespace glm
GLM_FUNC_QUALIFIER GLM_CONSTEXPR T & vec<3, T, Q>::operator[](typename vec<3, T, Q>::length_type i)
{
GLM_ASSERT_LENGTH(i, this->length());
#if GLM_LANG & GLM_LANG_CXX14_FLAG || GLM_LANG & GLM_LANG_CXX17_FLAG
#if GLM_LANG & GLM_LANG_CXX20_FLAG
if (std::is_constant_evaluated())