Browse Source

Added <glm/gtx/hash.hpp> to perform to perform std::hash on GLM types #320

Christophe Riccio 10 years ago
parent
commit
f51bcc70cc
3 changed files with 6 additions and 1 deletions
  1. 4 0
      glm/gtx/hash.hpp
  2. 1 1
      glm/gtx/scalar_multiplication.hpp
  3. 1 0
      readme.txt

+ 4 - 0
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 <functional>
 
 #include "../vec2.hpp"

+ 1 - 1
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"

+ 1 - 0
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 <glm/gtx/hash.hpp> to perform to perform std::hash on GLM types #320
 
 Improvements:
 - Changed usage of __has_include to support Intel compiler #307