1
0
Fork 0

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.
This commit is contained in:
madmaxoft 2014-05-02 23:50:22 +02:00
parent 58224863c0
commit cbf4a17e05
1 changed files with 9 additions and 1 deletions

View File

@ -163,8 +163,16 @@ public:
z *= a_v;
}
// tolua_begin
template <typename T2> inline Vector3<T> & operator =(const Vector3<T2> & a_Rhs)
{
x = (T)a_Rhs.x;
y = (T)a_Rhs.y;
z = (T)a_Rhs.z;
return *this;
}
// tolua_begin
inline Vector3<T> operator + (const Vector3<T>& a_Rhs) const
{
return Vector3<T>(