Adding a const & here for consistency reasons

The other vector types have T const & scalar for their binary operator+
This commit is contained in:
devmane144 2018-02-01 14:41:44 -06:00 committed by GitHub
parent be53cebcd3
commit f30f012d37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -627,7 +627,7 @@ namespace detail
// -- Binary arithmetic operators --
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;
}