From 9841b9a048b5b61b2489e1479bf0ccbdf7672f41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Klinkovsk=C3=BD?= <klinkovsky@mmg.fjfi.cvut.cz> Date: Mon, 22 Feb 2021 16:40:33 +0100 Subject: [PATCH] Fixed IndexType in StaticMatrix --- src/TNL/Matrices/StaticMatrix.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/TNL/Matrices/StaticMatrix.h b/src/TNL/Matrices/StaticMatrix.h index 9fb0b19acd..0a8cf31edd 100644 --- a/src/TNL/Matrices/StaticMatrix.h +++ b/src/TNL/Matrices/StaticMatrix.h @@ -24,11 +24,13 @@ template< typename Value, typename Permutation = std::index_sequence< 0, 1 > > // identity by default class StaticMatrix : public Containers::StaticNDArray< Value, - Containers::SizesHolder< std::size_t, Rows, Columns >, + // note that using std::size_t in SizesHolder does not make sense, since the + // StaticNDArray is based on StaticArray, which uses int as IndexType + Containers::SizesHolder< int, Rows, Columns >, Permutation > { using Base = Containers::StaticNDArray< Value, - Containers::SizesHolder< std::size_t, Rows, Columns >, + Containers::SizesHolder< int, Rows, Columns >, Permutation >; public: -- GitLab