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));