diff --git a/glm/gtx/hash.hpp b/glm/gtx/hash.hpp index f029b751..31e86dc6 100644 --- a/glm/gtx/hash.hpp +++ b/glm/gtx/hash.hpp @@ -41,6 +41,10 @@ #pragma once +#if !GLM_HAS_CXX11_STL +# error "GLM_GTX_hash requires C++11 standard library support" +#endif + #include #include "../vec2.hpp" diff --git a/glm/gtx/scalar_multiplication.hpp b/glm/gtx/scalar_multiplication.hpp index 5f6c4d9e..3b34d2b3 100644 --- a/glm/gtx/scalar_multiplication.hpp +++ b/glm/gtx/scalar_multiplication.hpp @@ -44,7 +44,7 @@ #include "../detail/setup.hpp" #if !GLM_HAS_TEMPLATE_ALIASES && !(GLM_COMPILER & GLM_COMPILER_GCC) -# error "GLM_GTX_scalar_multiplication requires C++11 suppport or alias templates and if not support for GCC" +# error "GLM_GTX_scalar_multiplication requires C++11 support or alias templates and if not support for GCC" #endif #include "../vec2.hpp" diff --git a/readme.txt b/readme.txt index 900c3550..b29e01c6 100644 --- a/readme.txt +++ b/readme.txt @@ -71,6 +71,7 @@ Features: - Added 'fmod' overload to GTX_common with tests #308 - Left handed perspective and lookAt functions #314 - Added functions eulerAngleXYZ and extractEulerAngleXYZ #311 +- Added to perform to perform std::hash on GLM types #320 Improvements: - Changed usage of __has_include to support Intel compiler #307