Fix const error

This commit is contained in:
Oskar Weigl
2019-03-08 19:17:40 +00:00
committed by Nuno Marques
parent eea6b59973
commit 5ccfa74c72
+1 -1
View File
@@ -355,7 +355,7 @@ public:
template<size_t P, size_t Q>
Matrix<Type, P, Q> slice(size_t x0, size_t y0) const
{
Matrix<Type, M, N> &self = *this;
const Matrix<Type, M, N> &self = *this;
Matrix<Type, P, Q> res; //default constructed
for (size_t i = 0; i < P; i++) {
for (size_t j = 0; j < Q; j++) {