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:
parent
58224863c0
commit
cbf4a17e05
@ -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>(
|
||||
|
Loading…
x
Reference in New Issue
Block a user