view: correct constness of make_byte_view

This commit is contained in:
Danny Robson 2018-07-18 15:20:42 +10:00
parent 80bc988466
commit 00651cab7c

View File

@ -583,7 +583,7 @@ namespace util {
view<const std::byte*>
make_byte_view (const T &t)
{
auto first = reinterpret_cast<std::byte*> (&t);
auto first = reinterpret_cast<std::byte const*> (&t);
auto last = first + sizeof (t);
return { first, last };
}