mirror of
https://github.com/g-truc/glm.git
synced 2024-11-10 12:41:54 +00:00
Fixed exact match of initializer lists
This commit is contained in:
parent
4acd5b087d
commit
e8f1feb423
@ -77,7 +77,7 @@ namespace detail
|
||||
GLM_FUNC_QUALIFIER tvec1<T, P>::tvec1(std::initializer_list<U> const & v) :
|
||||
x(static_cast<T>(v.begin()[0]))
|
||||
{
|
||||
assert(v.size() >= this->length());
|
||||
assert(v.size() == this->length());
|
||||
}
|
||||
#endif//GLM_HAS_INITIALIZER_LISTS
|
||||
|
||||
|
@ -81,7 +81,7 @@ namespace detail
|
||||
x(static_cast<T>(v.begin()[0])),
|
||||
y(static_cast<T>(v.begin()[1]))
|
||||
{
|
||||
assert(v.size() >= this->length());
|
||||
assert(v.size() == this->length());
|
||||
}
|
||||
#endif//GLM_HAS_INITIALIZER_LISTS
|
||||
|
||||
|
@ -85,7 +85,7 @@ namespace detail
|
||||
y(static_cast<T>(v.begin()[1])),
|
||||
z(static_cast<T>(v.begin()[2]))
|
||||
{
|
||||
assert(v.size() >= this->length());
|
||||
assert(v.size() == this->length());
|
||||
}
|
||||
#endif//GLM_HAS_INITIALIZER_LISTS
|
||||
|
||||
|
@ -89,7 +89,7 @@ namespace detail
|
||||
z(static_cast<T>(v.begin()[2])),
|
||||
w(static_cast<T>(v.begin()[3]))
|
||||
{
|
||||
assert(v.size() >= this->length());
|
||||
assert(v.size() == this->length());
|
||||
}
|
||||
#endif//GLM_HAS_INITIALIZER_LISTS
|
||||
|
||||
|
@ -92,7 +92,7 @@ namespace detail
|
||||
z(static_cast<T>(l.begin()[2])),
|
||||
w(static_cast<T>(l.begin()[3]))
|
||||
{
|
||||
assert(l.size() >= this->length());
|
||||
assert(l.size() == this->length());
|
||||
}
|
||||
#endif//GLM_HAS_INITIALIZER_LISTS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user