From eedd18d5b8208a096bff2790a161ebb5f863defd Mon Sep 17 00:00:00 2001 From: mcheese Date: Sun, 6 Dec 2015 13:43:03 +0100 Subject: [PATCH] Correct missing rename of bytes() to size_bytes() --- include/span.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/span.h b/include/span.h index 8151737..72d55d6 100644 --- a/include/span.h +++ b/include/span.h @@ -1669,7 +1669,7 @@ constexpr auto as_span(span s) noexcept -> span< ByteSpan::bounds_type::static_size % static_cast(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(s.data()), s.size_bytes() / narrow_cast(sizeof(U))}; }