diff --git a/BAN/include/BAN/ByteSpan.h b/BAN/include/BAN/ByteSpan.h index 40eacdfa39..faea6fa43d 100644 --- a/BAN/include/BAN/ByteSpan.h +++ b/BAN/include/BAN/ByteSpan.h @@ -84,7 +84,7 @@ namespace BAN return Span(reinterpret_cast(m_data), m_size / sizeof(S)); } - ByteSpanGeneral slice(size_type offset, size_type length = size_type(-1)) const + [[nodiscard]] ByteSpanGeneral slice(size_type offset, size_type length = size_type(-1)) const { ASSERT(m_data); ASSERT(m_size >= offset);