From 5ccfa74c7260be13f964bb9632f7b4edec3e1f4b Mon Sep 17 00:00:00 2001 From: Oskar Weigl Date: Mon, 4 Mar 2019 21:37:28 -0800 Subject: [PATCH] Fix const error --- matrix/Matrix.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix/Matrix.hpp b/matrix/Matrix.hpp index 70bcea5ef7..b9c3895197 100644 --- a/matrix/Matrix.hpp +++ b/matrix/Matrix.hpp @@ -355,7 +355,7 @@ public: template Matrix slice(size_t x0, size_t y0) const { - Matrix &self = *this; + const Matrix &self = *this; Matrix res; //default constructed for (size_t i = 0; i < P; i++) { for (size_t j = 0; j < Q; j++) {