From 240d57f4b48d25a53e30d43e87f7e469362cef07 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Sat, 4 Nov 2023 18:12:46 +0200 Subject: [PATCH] BAN: Update bytespan -> span API --- BAN/include/BAN/ByteSpan.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/BAN/include/BAN/ByteSpan.h b/BAN/include/BAN/ByteSpan.h index e86ba8f8e9..d54403e375 100644 --- a/BAN/include/BAN/ByteSpan.h +++ b/BAN/include/BAN/ByteSpan.h @@ -97,8 +97,7 @@ namespace BAN } template - requires(is_const_v) - Span as_span() const + const Span as_span() const { ASSERT(m_data); return Span(reinterpret_cast(m_data), m_size / sizeof(S));