From f30f012d37facec0e0c3f87d3af1a4b082b4039a Mon Sep 17 00:00:00 2001 From: devmane144 Date: Thu, 1 Feb 2018 14:41:44 -0600 Subject: [PATCH] Adding a const & here for consistency reasons The other vector types have T const & scalar for their binary operator+ --- glm/detail/type_vec4.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glm/detail/type_vec4.inl b/glm/detail/type_vec4.inl index 2bad9aee..9dca45e1 100644 --- a/glm/detail/type_vec4.inl +++ b/glm/detail/type_vec4.inl @@ -627,7 +627,7 @@ namespace detail // -- Binary arithmetic operators -- template - 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; }