From 89c11e6679346e77ee32eb1343d3cf4e7d429a46 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Fri, 19 May 2017 23:25:16 +0100 Subject: Working on Vector class --- include/YAGE/Math/vector.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') 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; -- cgit