From 936e654b261b4d1cb604a44da534ba385aa10099 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 1 Jan 2024 12:56:05 -0800 Subject: Make the flexarray storage span const --- common/flexarray.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/flexarray.h b/common/flexarray.h index 09aeef4e..3e211f75 100644 --- a/common/flexarray.h +++ b/common/flexarray.h @@ -66,7 +66,7 @@ struct FlexArray { static constexpr size_t alignment{std::max(alignof(T), Align)}; using Storage_t_ = FlexArrayStorage; - Storage_t_ mStore; + const Storage_t_ mStore; static constexpr index_type Sizeof(index_type count, index_type base=0u) noexcept { return Storage_t_::Sizeof(count, base); } -- cgit v1.2.3