diff --git a/lib/coek/coek/api/indexed_container.defs.hpp b/lib/coek/coek/api/indexed_container.defs.hpp index 6fe219da..67de5b7d 100644 --- a/lib/coek/coek/api/indexed_container.defs.hpp +++ b/lib/coek/coek/api/indexed_container.defs.hpp @@ -1,5 +1,7 @@ #pragma once +#include + namespace coek { template @@ -37,7 +39,7 @@ class IndexedComponentRepn_multiarray : public IndexedComponentRepn { { for (size_t i = 0; i < this->_dim; ++i) { size_t tmp = static_cast(args[i]); - if ((tmp < 0) or (tmp >= shape[i])) + if (tmp >= shape[i]) return false; } return true;