aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/stdlist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/stdlist.cpp')
-rw-r--r--test/stdlist.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/stdlist.cpp b/test/stdlist.cpp
index 7a54d464f..a410b3eb2 100644
--- a/test/stdlist.cpp
+++ b/test/stdlist.cpp
@@ -30,8 +30,10 @@
template<typename MatrixType>
void check_stdlist_matrix(const MatrixType& m)
{
- int rows = m.rows();
- int cols = m.cols();
+ typedef typename MatrixType::Index Index;
+
+ Index rows = m.rows();
+ Index cols = m.cols();
MatrixType x = MatrixType::Random(rows,cols), y = MatrixType::Random(rows,cols);
std::list<MatrixType,Eigen::aligned_allocator<MatrixType> > v(10, MatrixType(rows,cols)), w(20, y);
v.front() = x;