From a1db1cd9e22e77041d5f1360f1d1ccdc52b86306 Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Mon, 26 May 2025 00:47:54 +0200 Subject: Implement chunked_buffer --- asl/types/array.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'asl/types/array.hpp') diff --git a/asl/types/array.hpp b/asl/types/array.hpp index 54c3fbe..1e722d9 100644 --- a/asl/types/array.hpp +++ b/asl/types/array.hpp @@ -12,7 +12,7 @@ namespace asl { -template +template requires (kSize > 0) struct array { @@ -20,7 +20,7 @@ struct array [[nodiscard]] constexpr bool is_empty() const { return false; } - [[nodiscard]] constexpr int64_t size() const { return kSize; } + [[nodiscard]] constexpr isize_t size() const { return kSize; } constexpr auto data(this auto&& self) { @@ -38,14 +38,14 @@ struct array return contiguous_iterator{self.data() + kSize}; } - template + template requires (kSpanSize == kSize || kSpanSize == dynamic_size) constexpr operator span() const // NOLINT(*explicit*) { return as_span(); } - template + template requires (kSpanSize == kSize || kSpanSize == dynamic_size) constexpr operator span() // NOLINT(*explicit*) { -- cgit