From 251ad3e04f068f2dc475809d11ad0f99d51ac54a Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 27 Jan 2017 11:57:52 +0100 Subject: Fix unamed type as template parametre issue. --- test/block.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'test/block.cpp') diff --git a/test/block.cpp b/test/block.cpp index 2520dfcdd..d61059874 100644 --- a/test/block.cpp +++ b/test/block.cpp @@ -94,10 +94,9 @@ template void block(const MatrixType& m) m1.block(r1,c1,r2-r1+1,c2-c1+1) = s1 * m2.block(0, 0, r2-r1+1,c2-c1+1); m1.block(r1,c1,r2-r1+1,c2-c1+1)(r2-r1,c2-c1) = m2.block(0, 0, r2-r1+1,c2-c1+1)(0,0); - enum { - BlockRows = 2, - BlockCols = 5 - }; + const Index BlockRows = 2; + const Index BlockCols = 5; + if (rows>=5 && cols>=8) { // test fixed block() as lvalue -- cgit v1.2.3