Revert "buf_ref.into() can be const now"

This reverts commit d59c77ac55.
This commit is contained in:
Adam Treat 2023-05-30 12:58:53 -04:00
parent b5edaa2656
commit cdc7d6ccc4

View File

@ -88,7 +88,7 @@ struct buf_ref {
uint32_t offset : 20; uint32_t offset : 20;
uint32_t length : 12; uint32_t length : 12;
std::string_view into(const char* buf) const { std::string_view into(const char* buf) {
return std::string_view(&buf[offset], length); return std::string_view(&buf[offset], length);
} }
}; };