diff --git a/Array.h b/Array.h index efb8eee..f8fbcb7 100644 --- a/Array.h +++ b/Array.h @@ -32,7 +32,13 @@ template struct EigenAdaptConst_S { typedef ConstEigenMapM template using EigenAdaptConst = typename EigenAdaptConst_S::type; template class Array; -using Slice = std::pair; + +struct Slice { + uint32_t first; + uint32_t second; + HD Slice(const std::initializer_list i) + : first(*i.begin()), second(*(i.begin() + 1)) {} +}; template class ArrayIterator { private: