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) :
|
GLM_FUNC_QUALIFIER tvec1<T, P>::tvec1(std::initializer_list<U> const & v) :
|
||||||
x(static_cast<T>(v.begin()[0]))
|
x(static_cast<T>(v.begin()[0]))
|
||||||
{
|
{
|
||||||
assert(v.size() >= this->length());
|
assert(v.size() == this->length());
|
||||||
}
|
}
|
||||||
#endif//GLM_HAS_INITIALIZER_LISTS
|
#endif//GLM_HAS_INITIALIZER_LISTS
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ namespace detail
|
|||||||
x(static_cast<T>(v.begin()[0])),
|
x(static_cast<T>(v.begin()[0])),
|
||||||
y(static_cast<T>(v.begin()[1]))
|
y(static_cast<T>(v.begin()[1]))
|
||||||
{
|
{
|
||||||
assert(v.size() >= this->length());
|
assert(v.size() == this->length());
|
||||||
}
|
}
|
||||||
#endif//GLM_HAS_INITIALIZER_LISTS
|
#endif//GLM_HAS_INITIALIZER_LISTS
|
||||||
|
|
||||||
|
@ -85,7 +85,7 @@ namespace detail
|
|||||||
y(static_cast<T>(v.begin()[1])),
|
y(static_cast<T>(v.begin()[1])),
|
||||||
z(static_cast<T>(v.begin()[2]))
|
z(static_cast<T>(v.begin()[2]))
|
||||||
{
|
{
|
||||||
assert(v.size() >= this->length());
|
assert(v.size() == this->length());
|
||||||
}
|
}
|
||||||
#endif//GLM_HAS_INITIALIZER_LISTS
|
#endif//GLM_HAS_INITIALIZER_LISTS
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@ namespace detail
|
|||||||
z(static_cast<T>(v.begin()[2])),
|
z(static_cast<T>(v.begin()[2])),
|
||||||
w(static_cast<T>(v.begin()[3]))
|
w(static_cast<T>(v.begin()[3]))
|
||||||
{
|
{
|
||||||
assert(v.size() >= this->length());
|
assert(v.size() == this->length());
|
||||||
}
|
}
|
||||||
#endif//GLM_HAS_INITIALIZER_LISTS
|
#endif//GLM_HAS_INITIALIZER_LISTS
|
||||||
|
|
||||||
|
@ -92,7 +92,7 @@ namespace detail
|
|||||||
z(static_cast<T>(l.begin()[2])),
|
z(static_cast<T>(l.begin()[2])),
|
||||||
w(static_cast<T>(l.begin()[3]))
|
w(static_cast<T>(l.begin()[3]))
|
||||||
{
|
{
|
||||||
assert(l.size() >= this->length());
|
assert(l.size() == this->length());
|
||||||
}
|
}
|
||||||
#endif//GLM_HAS_INITIALIZER_LISTS
|
#endif//GLM_HAS_INITIALIZER_LISTS
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user