mirror of
https://github.com/g-truc/glm.git
synced 2024-11-10 12:41:54 +00:00
Fixed static asserts
This commit is contained in:
parent
9eca6be854
commit
e346df1889
@ -150,7 +150,7 @@ namespace glm
|
|||||||
inline bool any(vecType<bool> const & v)
|
inline bool any(vecType<bool> const & v)
|
||||||
{
|
{
|
||||||
GLM_STATIC_ASSERT(
|
GLM_STATIC_ASSERT(
|
||||||
detail::type<T>::is_bool, "'any' only accept GLM boolean vectors");
|
vecType<bool>::is_bool, "'any' only accept GLM boolean vectors");
|
||||||
|
|
||||||
bool Result = false;
|
bool Result = false;
|
||||||
for(typename vecType<bool>::size_type i = 0; i < vecType<bool>::value_size(); ++i)
|
for(typename vecType<bool>::size_type i = 0; i < vecType<bool>::value_size(); ++i)
|
||||||
@ -164,7 +164,7 @@ namespace glm
|
|||||||
inline bool all(vecType<bool> const & v)
|
inline bool all(vecType<bool> const & v)
|
||||||
{
|
{
|
||||||
GLM_STATIC_ASSERT(
|
GLM_STATIC_ASSERT(
|
||||||
detail::type<T>::is_bool, "'all' only accept GLM boolean vectors");
|
vecType<bool>::is_bool, "'all' only accept GLM boolean vectors");
|
||||||
|
|
||||||
bool Result = true;
|
bool Result = true;
|
||||||
for(typename vecType<bool>::size_type i = 0; i < vecType<bool>::value_size(); ++i)
|
for(typename vecType<bool>::size_type i = 0; i < vecType<bool>::value_size(); ++i)
|
||||||
@ -178,7 +178,7 @@ namespace glm
|
|||||||
inline vecType<bool> not_(vecType<bool> const & v)
|
inline vecType<bool> not_(vecType<bool> const & v)
|
||||||
{
|
{
|
||||||
GLM_STATIC_ASSERT(
|
GLM_STATIC_ASSERT(
|
||||||
detail::type<T>::is_bool, "'not_' only accept GLM boolean vectors");
|
vecType<bool>::is_bool, "'not_' only accept GLM boolean vectors");
|
||||||
|
|
||||||
typename vecType<bool>::bool_type Result(vecType<bool>::null);
|
typename vecType<bool>::bool_type Result(vecType<bool>::null);
|
||||||
for(typename vecType<bool>::size_type i = 0; i < vecType<bool>::value_size(); ++i)
|
for(typename vecType<bool>::size_type i = 0; i < vecType<bool>::value_size(); ++i)
|
||||||
|
Loading…
Reference in New Issue
Block a user