archive/iso9660: simplify std::span initializer

This commit is contained in:
Max Kellermann
2022-09-06 21:16:22 +02:00
parent d5d25d78da
commit 0e201ffdcc

View File

@@ -166,7 +166,7 @@ class Iso9660InputStream final : public InputStream {
assert(fill <= data.size()); assert(fill <= data.size());
assert(position <= fill); assert(position <= fill);
return {data.data() + position, data.data() + fill}; return std::span{data}.first(fill).subspan(position);
} }
void Consume(size_t nbytes) noexcept { void Consume(size_t nbytes) noexcept {