From cd9bb54d574dabd9058bb8cf6d4f40bee9358b98 Mon Sep 17 00:00:00 2001 From: Daniele Rapetti Date: Wed, 23 Oct 2024 12:02:56 +0200 Subject: [PATCH] atoned a sin --- src/tools/Pbc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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