diff --git a/include/highfive/eigen.hpp b/include/highfive/eigen.hpp index 885d29385..012b4e76f 100644 --- a/include/highfive/eigen.hpp +++ b/include/highfive/eigen.hpp @@ -32,7 +32,7 @@ struct inspector> { } static size_t getRank(const type& val) { - return ndim + inspector::getRank(val[0]); + return ndim + inspector::getRank(val.data()[0]); } static std::vector getDimensions(const type& val) {