BAN: Update bytespan -> span API

This commit is contained in:
Bananymous 2023-11-04 18:12:46 +02:00
parent 6d899aa6ce
commit 061d10e635
1 changed files with 1 additions and 2 deletions

View File

@ -97,8 +97,7 @@ namespace BAN
}
template<typename S>
requires(is_const_v<S>)
Span<S> as_span() const
const Span<S> as_span() const
{
ASSERT(m_data);
return Span<S>(reinterpret_cast<S*>(m_data), m_size / sizeof(S));