From 07129094504f4ce158ee84e8a3c16003f4cb83c0 Mon Sep 17 00:00:00 2001 From: Daniele Date: Wed, 23 Oct 2024 19:09:36 +0200 Subject: [PATCH] atoned a sin (#1146) --- 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