diff --git a/src/tools/Pbc.h b/src/tools/Pbc.h index 29e3b3a86a..60aa04059c 100644 --- a/src/tools/Pbc.h +++ b/src/tools/Pbc.h @@ -27,6 +27,7 @@ #include "small_vector/small_vector.h" #include #include +#include namespace PLMD { @@ -43,7 +44,7 @@ class MemoryView { }; namespace helpers { -inline constexpr std::size_t dynamic_extent = -1; +inline constexpr std::size_t dynamic_extent = std::numeric_limits::max(); } //this more or less mocks c++23 mdspan without the fancy multi-indexed operator[] //the idea is to take an address that you know to be strided in a certain way and