From 6f128f598336a1395a8951e280e1301fcb862c39 Mon Sep 17 00:00:00 2001 From: Bryce Mehring Date: Wed, 12 Aug 2015 22:44:32 -0500 Subject: [PATCH] Fixed C++11 standard library error message When including glm/gtx/hash.hpp before any other glm header files, the error "GLM_GTX_hash requires C++11 standard library support" is thrown because GLM_HAS_CXX11_STL is not yet defined. --- glm/gtx/hash.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/glm/gtx/hash.hpp b/glm/gtx/hash.hpp index cd44028c..1d9e5572 100644 --- a/glm/gtx/hash.hpp +++ b/glm/gtx/hash.hpp @@ -41,10 +41,6 @@ #pragma once -#if !GLM_HAS_CXX11_STL -# error "GLM_GTX_hash requires C++11 standard library support" -#endif - #include #include "../vec2.hpp" @@ -67,6 +63,10 @@ #include "../mat4x3.hpp" #include "../mat4x4.hpp" +#if !GLM_HAS_CXX11_STL +# error "GLM_GTX_hash requires C++11 standard library support" +#endif + namespace std { template