From 07fba8322a16cb2dac47e6a8ac7d21ec346313ff Mon Sep 17 00:00:00 2001 From: James Goppert Date: Fri, 18 Mar 2016 20:56:41 -0400 Subject: [PATCH] Fix for effective cpp. --- matrix/Matrix.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/matrix/Matrix.hpp b/matrix/Matrix.hpp index 83e3870757..4cf2d431c8 100644 --- a/matrix/Matrix.hpp +++ b/matrix/Matrix.hpp @@ -72,11 +72,12 @@ public: return _data[i][j]; } - void operator=(const Matrix &other) + Matrix & operator=(const Matrix &other) { if (this != &other) { memcpy(_data, other._data, sizeof(_data)); } + return (*this); } /**