aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/block.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2017-01-27 11:57:52 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2017-01-27 11:57:52 +0100
commit251ad3e04f068f2dc475809d11ad0f99d51ac54a (patch)
tree6a36bc0c5abd93351afc31b4c0bc33cd75837b96 /test/block.cpp
parent25a17035798698187fc410d1bffb603f98992b56 (diff)
Fix unamed type as template parametre issue.
Diffstat (limited to 'test/block.cpp')
-rw-r--r--test/block.cpp7
1 files changed, 3 insertions, 4 deletions
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<typename MatrixType> 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