mirror of
https://github.com/nomic-ai/gpt4all
synced 2024-11-02 09:40:42 +00:00
buf_ref.into() can be const now
This commit is contained in:
parent
bbcee1ced5
commit
d59c77ac55
@ -88,7 +88,7 @@ struct buf_ref {
|
||||
uint32_t offset : 20;
|
||||
uint32_t length : 12;
|
||||
|
||||
std::string_view into(const char* buf) {
|
||||
std::string_view into(const char* buf) const {
|
||||
return std::string_view(&buf[offset], length);
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user