This repository was archived by the owner on Jan 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,16 @@ namespace RTE {
69
69
return returnVector;
70
70
}
71
71
72
+ // ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
73
+
74
+ Vector & Vector::operator =(const Vector &rhs) {
75
+ if (*this != rhs) {
76
+ m_X = rhs.m_X ;
77
+ m_Y = rhs.m_Y ;
78
+ }
79
+ return *this ;
80
+ }
81
+
72
82
// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
73
83
74
84
Vector & Vector::operator =(const std::deque<Vector> &rhs) {
Original file line number Diff line number Diff line change @@ -339,7 +339,7 @@ namespace RTE {
339
339
// / </summary>
340
340
// / <param name="rhs">A Vector reference.</param>
341
341
// / <returns>A reference to the changed Vector.</returns>
342
- Vector & operator =(const Vector &rhs) = default ;
342
+ Vector & operator =(const Vector &rhs);
343
343
344
344
// / <summary>
345
345
// / An assignment operator for setting this Vector equal to the average of an std::deque of Vectors.
You can’t perform that action at this time.
0 commit comments