From cbf4a17e0594ebd408d207bb689fedd70f1419e2 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Fri, 2 May 2014 23:50:22 +0200 Subject: Attempted fix for CLang warnings in Vector3.h. C++11 seems to have deprecated classes that have custom copy-constructor but not a custom assignment operator. --- src/Vector3.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Vector3.h b/src/Vector3.h index 2c79f9ff1..4a1440b32 100644 --- a/src/Vector3.h +++ b/src/Vector3.h @@ -163,8 +163,16 @@ public: z *= a_v; } - // tolua_begin + template inline Vector3 & operator =(const Vector3 & a_Rhs) + { + x = (T)a_Rhs.x; + y = (T)a_Rhs.y; + z = (T)a_Rhs.z; + return *this; + } + // tolua_begin + inline Vector3 operator + (const Vector3& a_Rhs) const { return Vector3( -- cgit v1.2.3