view: correct constness of make_byte_view
This commit is contained in:
parent
80bc988466
commit
00651cab7c
2
view.hpp
2
view.hpp
@ -583,7 +583,7 @@ namespace util {
|
|||||||
view<const std::byte*>
|
view<const std::byte*>
|
||||||
make_byte_view (const T &t)
|
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);
|
auto last = first + sizeof (t);
|
||||||
return { first, last };
|
return { first, last };
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user