mirror of
https://github.com/g-truc/glm.git
synced 2024-11-26 18:24:35 +00:00
Improved static assert messages
This commit is contained in:
parent
66bc06771c
commit
086706caa5
@ -47,7 +47,7 @@ namespace detail
|
||||
{
|
||||
GLM_STATIC_ASSERT(
|
||||
std::numeric_limits<genFIType>::is_iec559 || std::numeric_limits<genFIType>::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<genFIType>::is_signed && std::numeric_limits<genFIType>::is_integer,
|
||||
"'abs' only accept floating-point and integer inputs");
|
||||
"'abs' only accept floating-point and integer scalar or vector inputs");
|
||||
return x;
|
||||
}
|
||||
};
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user