Propagate compile-time size with "all" and add c++11 array unit test

This commit is contained in:
Gael Guennebaud
2017-01-06 13:29:33 +01:00
parent 3730e3ca9e
commit fad1fa75b3
3 changed files with 20 additions and 5 deletions

View File

@@ -19,8 +19,8 @@ struct traits<IndexedView<XprType, RowIndices, ColIndices> >
: traits<XprType>
{
enum {
RowsAtCompileTime = get_compile_time_size<RowIndices>::value,
ColsAtCompileTime = get_compile_time_size<ColIndices>::value,
RowsAtCompileTime = get_compile_time_size<RowIndices,traits<XprType>::RowsAtCompileTime>::value,
ColsAtCompileTime = get_compile_time_size<ColIndices,traits<XprType>::ColsAtCompileTime>::value,
MaxRowsAtCompileTime = RowsAtCompileTime != Dynamic ? int(RowsAtCompileTime) : int(traits<XprType>::MaxRowsAtCompileTime),
MaxColsAtCompileTime = ColsAtCompileTime != Dynamic ? int(ColsAtCompileTime) : int(traits<XprType>::MaxColsAtCompileTime),