From 5bca2bb944b16afbe81bfd25f5ae6eb7acab2e5d Mon Sep 17 00:00:00 2001 From: Marcel Koch Date: Wed, 3 Jul 2024 15:09:48 +0200 Subject: [PATCH] [core] fix get_segment for const context --- core/base/segmented_array.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/base/segmented_array.hpp b/core/base/segmented_array.hpp index ffa4d62e74a..c77d7110e00 100644 --- a/core/base/segmented_array.hpp +++ b/core/base/segmented_array.hpp @@ -29,7 +29,7 @@ struct device_segmented_array { T* end; }; - constexpr segment get_segment(size_type segment_id) + constexpr segment get_segment(size_type segment_id) const { GKO_ASSERT(segment_id < (offsets_end - offsets_begin)); return {flat_begin + offsets_begin[segment_id],