Fix for effective cpp.

This commit is contained in:
James Goppert 2016-03-18 20:56:41 -04:00
parent 711b57d2d4
commit 07fba8322a

View File

@ -72,11 +72,12 @@ public:
return _data[i][j];
}
void operator=(const Matrix<Type, M, N> &other)
Matrix<Type, M, N> & operator=(const Matrix<Type, M, N> &other)
{
if (this != &other) {
memcpy(_data, other._data, sizeof(_data));
}
return (*this);
}
/**