diff options
author | Gael Guennebaud <g.gael@free.fr> | 2017-09-07 14:34:30 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2017-09-07 14:34:30 +0200 |
commit | 6d42309f1394396c984212abad73469e6a50c3a3 (patch) | |
tree | 9bcf9390af99d7bb0e076134ef909dfd9365ee53 /test | |
parent | ea4e65bf413fd5e60cd13407879d7ccaae62f6fc (diff) |
Fix compilation of Vector::operator()(enum) by treating enums as Index
Diffstat (limited to 'test')
-rw-r--r-- | test/indexed_view.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/indexed_view.cpp b/test/indexed_view.cpp index 7245cf378..8b3082cea 100644 --- a/test/indexed_view.cpp +++ b/test/indexed_view.cpp @@ -366,6 +366,11 @@ void check_indexed_view() VERIFY( is_same_eq( cA.middleRows<3>(1), cA.middleRows(1,fix<3>)) ); } + // Check compilation of enums as index type: + enum { X=0, Y=1 }; + a(X) = 1; + A(X,Y) = 1; + } void test_indexed_view() |