mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Fix compilation of Vector::operator()(enum) by treating enums as Index
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user