From 8eff3208fcc095c9bb429182d8ec847ba55bc068 Mon Sep 17 00:00:00 2001 From: hladu357 Date: Tue, 21 May 2024 18:33:24 +0200 Subject: [PATCH] generic matrix template --- m.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/m.cpp b/m.cpp index b5f7309..cc8c9ce 100644 --- a/m.cpp +++ b/m.cpp @@ -1,4 +1,4 @@ -template struct Matrix; +template struct Matrix; template struct Matrix { @@ -8,9 +8,9 @@ struct Matrix { inline T& operator[](unsigned i) { return data[i]; } }; -template -struct Matrix { - typedef typename Matrix::GenericDimType FirstDimType; +template +struct Matrix { + typedef typename Matrix::GenericDimType FirstDimType; typedef FirstDimType GenericDimType[FirstDim]; GenericDimType data;