aboutsummaryrefslogtreecommitdiffstats
path: root/include/YAGE/Math/vector.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/YAGE/Math/vector.hpp')
-rw-r--r--include/YAGE/Math/vector.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/YAGE/Math/vector.hpp b/include/YAGE/Math/vector.hpp
index 83c16502..5f3161df 100644
--- a/include/YAGE/Math/vector.hpp
+++ b/include/YAGE/Math/vector.hpp
@@ -26,7 +26,7 @@ public:
return members_[index];
}
- inline Vector &operator=(const Vector &other)
+ inline Vector operator=(Vector other)
{
this->members_=other.members_;
return *this;
@@ -73,7 +73,7 @@ public:
return *this;
}
- inline Vector operator+(const Vector &other) const
+ inline Vector operator+(Vector other) const
{
Vector v(members_);
return v+=other;