Correct missing rename of bytes() to size_bytes()

This commit is contained in:
mcheese 2015-12-06 13:43:03 +01:00
parent ace63c5a9d
commit eedd18d5b8

View File

@ -1669,7 +1669,7 @@ constexpr auto as_span(span<byte, Dimensions...> s) noexcept -> span<
ByteSpan::bounds_type::static_size % static_cast<std::size_t>(sizeof(U)) == 0),
"Target type must be a trivial type and its size must match the byte array size");
Expects((s.bytes() % sizeof(U)) == 0);
Expects((s.size_bytes() % sizeof(U)) == 0);
return {reinterpret_cast<U*>(s.data()),
s.size_bytes() / narrow_cast<std::ptrdiff_t>(sizeof(U))};
}