Adding a const & here for consistency reasons

The other vector types have T const & scalar for their binary operator+
master
devmane144 ago%!(EXTRA string=7 years) committed by GitHub
parent be53cebcd3
commit f30f012d37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      glm/detail/type_vec4.inl

@ -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;
}

Loading…
Cancel
Save