Added C++2a detection and fixed constexpr tests

This commit is contained in:
Groove
2018-07-11 21:59:25 +02:00
parent 1381e0b4c1
commit b76f938505
12 changed files with 34 additions and 30 deletions

View File

@@ -157,7 +157,7 @@ int test_size()
int test_constexpr()
{
#if GLM_HAS_CONSTEXPR_CXX11
#if GLM_HAS_CONSTEXPR_CXX14
static_assert(glm::mat2x2::length() == 2, "GLM: Failed constexpr");
#endif

View File

@@ -122,7 +122,7 @@ int test_size()
int test_constexpr()
{
#if GLM_HAS_CONSTEXPR_CXX11
#if GLM_HAS_CONSTEXPR_CXX14
static_assert(glm::mat2x3::length() == 2, "GLM: Failed constexpr");
#endif

View File

@@ -124,7 +124,7 @@ static int test_size()
static int test_constexpr()
{
#if GLM_HAS_CONSTEXPR_CXX11
#if GLM_HAS_CONSTEXPR_CXX14
static_assert(glm::mat2x4::length() == 2, "GLM: Failed constexpr");
#endif

View File

@@ -126,7 +126,7 @@ static int test_size()
static int test_constexpr()
{
#if GLM_HAS_CONSTEXPR_CXX11
#if GLM_HAS_CONSTEXPR_CXX14
static_assert(glm::mat3x2::length() == 3, "GLM: Failed constexpr");
#endif

View File

@@ -185,7 +185,7 @@ static int test_size()
static int test_constexpr()
{
#if GLM_HAS_CONSTEXPR_CXX11
#if GLM_HAS_CONSTEXPR_CXX14
static_assert(glm::mat3x3::length() == 3, "GLM: Failed constexpr");
GLM_CONSTEXPR_CXX11 glm::mat3x3 const Z(0.0f);

View File

@@ -128,7 +128,7 @@ static int test_size()
static int test_constexpr()
{
#if GLM_HAS_CONSTEXPR_CXX11
#if GLM_HAS_CONSTEXPR_CXX14
static_assert(glm::mat3x4::length() == 3, "GLM: Failed constexpr");
#endif

View File

@@ -130,7 +130,7 @@ static int test_size()
static int test_constexpr()
{
#if GLM_HAS_CONSTEXPR_CXX11
#if GLM_HAS_CONSTEXPR_CXX14
static_assert(glm::mat4x2::length() == 4, "GLM: Failed constexpr");
#endif

View File

@@ -130,7 +130,7 @@ static int test_size()
static int test_constexpr()
{
#if GLM_HAS_CONSTEXPR_CXX11
#if GLM_HAS_CONSTEXPR_CXX14
static_assert(glm::mat4x3::length() == 4, "GLM: Failed constexpr");
#endif

View File

@@ -323,7 +323,7 @@ static int test_constexpr()
{
glm::mat4 const I(1.0f);
#if GLM_HAS_CONSTEXPR_CXX11
#if GLM_HAS_CONSTEXPR_CXX14
static_assert(glm::mat4::length() == 4, "GLM: Failed constexpr");
#endif