Redesigned constexpr support which requires disable GLM SIMD on Visual C++ #783

This commit is contained in:
Groove
2018-07-09 21:44:28 +02:00
parent cdcc9467d0
commit 398e66ac32
43 changed files with 638 additions and 645 deletions

View File

@@ -107,10 +107,8 @@ int test_vec1_size()
Error += glm::vec1::length() == 1 ? 0 : 1;
Error += glm::dvec1::length() == 1 ? 0 : 1;
# if GLM_HAS_CONSTEXPR_PARTIAL
constexpr std::size_t Length = glm::vec1::length();
GLM_CONSTEXPR_CXX11 std::size_t Length = glm::vec1::length();
Error += Length == 1 ? 0 : 1;
# endif
return Error;
}

View File

@@ -312,10 +312,8 @@ int test_vec2_size()
Error += glm::vec2::length() == 2 ? 0 : 1;
Error += glm::dvec2::length() == 2 ? 0 : 1;
# if GLM_HAS_CONSTEXPR_PARTIAL
constexpr std::size_t Length = glm::vec2::length();
Error += Length == 2 ? 0 : 1;
# endif
GLM_CONSTEXPR_CXX11 std::size_t Length = glm::vec2::length();
Error += Length == 2 ? 0 : 1;
return Error;
}

View File

@@ -328,10 +328,8 @@ int test_vec3_size()
Error += glm::vec3::length() == 3 ? 0 : 1;
Error += glm::dvec3::length() == 3 ? 0 : 1;
# if GLM_HAS_CONSTEXPR_PARTIAL
constexpr std::size_t Length = glm::vec3::length();
GLM_CONSTEXPR_CXX11 std::size_t Length = glm::vec3::length();
Error += Length == 3 ? 0 : 1;
# endif
return Error;
}

View File

@@ -518,10 +518,8 @@ static int test_vec4_size()
Error += glm::vec4::length() == 4 ? 0 : 1;
Error += glm::dvec4::length() == 4 ? 0 : 1;
# if GLM_HAS_CONSTEXPR_PARTIAL
constexpr std::size_t Length = glm::vec4::length();
GLM_CONSTEXPR_CXX11 std::size_t Length = glm::vec4::length();
Error += Length == 4 ? 0 : 1;
# endif
return Error;
}