From 086706caa578b99e4e39716621a889ab765f7d69 Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Thu, 10 Oct 2013 01:29:18 +0200 Subject: [PATCH] Improved static assert messages --- glm/core/func_common.inl | 4 ++-- readme.txt | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/glm/core/func_common.inl b/glm/core/func_common.inl index 162d7e47..c7c15bc7 100644 --- a/glm/core/func_common.inl +++ b/glm/core/func_common.inl @@ -47,7 +47,7 @@ namespace detail { GLM_STATIC_ASSERT( std::numeric_limits::is_iec559 || std::numeric_limits::is_signed, - "'abs' only accept floating-point and integer inputs"); + "'abs' only accept floating-point and integer scalar or vector inputs"); return x >= genFIType(0) ? x : -x; // TODO, perf comp with: *(((int *) &x) + 1) &= 0x7fffffff; } @@ -60,7 +60,7 @@ namespace detail { GLM_STATIC_ASSERT( !std::numeric_limits::is_signed && std::numeric_limits::is_integer, - "'abs' only accept floating-point and integer inputs"); + "'abs' only accept floating-point and integer scalar or vector inputs"); return x; } }; diff --git a/readme.txt b/readme.txt index e2146f63..6e100f80 100644 --- a/readme.txt +++ b/readme.txt @@ -68,6 +68,7 @@ GLM 0.9.5.0: 2013-XX-XX - Added creating of a quaternion from two vectors - Added C++11 initializer lists - Fixed umulExtended and imulExtended implementations for vector types (#76) +- Fixed CUDA coverage for GTC extensions ================================================================================ GLM 0.9.4.6: 2013-09-20