mirror of
https://github.com/g-truc/glm.git
synced 2024-11-26 18:24:35 +00:00
Adding a const & here for consistency reasons
The other vector types have T const & scalar for their binary operator+
This commit is contained in:
parent
be53cebcd3
commit
f30f012d37
@ -627,7 +627,7 @@ namespace detail
|
|||||||
// -- Binary arithmetic operators --
|
// -- Binary arithmetic operators --
|
||||||
|
|
||||||
template<typename T, qualifier Q>
|
template<typename T, qualifier Q>
|
||||||
GLM_FUNC_QUALIFIER vec<4, T, Q> operator+(vec<4, T, Q> const& v, T scalar)
|
GLM_FUNC_QUALIFIER vec<4, T, Q> operator+(vec<4, T, Q> const& v, T const & scalar)
|
||||||
{
|
{
|
||||||
return vec<4, T, Q>(v) += scalar;
|
return vec<4, T, Q>(v) += scalar;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user