Merge pull request #221 from mcheese/master

Correct missing rename of bytes() to size_bytes()
This commit is contained in:
Neil MacIntosh 2015-12-08 12:02:14 -08:00
commit eb28b21049

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