diff options
author | Gael Guennebaud <g.gael@free.fr> | 2019-03-18 11:38:36 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2019-03-18 11:38:36 +0100 |
commit | 48898a988a5159d2f3c0ff00bd737d17b202e844 (patch) | |
tree | 1b55e521b741b1ec9dad44c0f349d5f4447510d7 /test | |
parent | cf7e2e277f76d965fe37dac5a3fecf588f58e3b7 (diff) |
fix unit test in c++03: c++03 does not allow passing local or anonymous enum as template param
Diffstat (limited to 'test')
-rw-r--r-- | test/constructor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/constructor.cpp b/test/constructor.cpp index e793dfca1..ffd5e802a 100644 --- a/test/constructor.cpp +++ b/test/constructor.cpp @@ -20,6 +20,8 @@ template<typename MatrixType> struct Wrapper inline operator MatrixType& () { return m_mat; } }; +enum my_sizes { M = 12, N = 7}; + template<typename MatrixType> void ctor_init1(const MatrixType& m) { // Check logic in PlainObjectBase::_init1 @@ -82,7 +84,6 @@ EIGEN_DECLARE_TEST(constructor) VERIFY_IS_EQUAL(a(4), 123.f); } { - enum { M = 12, N = 7}; MatrixXi m1(M,N); VERIFY_IS_EQUAL(m1.rows(),M); VERIFY_IS_EQUAL(m1.cols(),N); |