From cdc7d6ccc4423f415c2d391739069fa6080ab1fe Mon Sep 17 00:00:00 2001 From: Adam Treat Date: Tue, 30 May 2023 12:58:53 -0400 Subject: [PATCH] Revert "buf_ref.into() can be const now" This reverts commit d59c77ac553cbc51776811a3fee0229a06cafd45. --- gpt4all-backend/tokenizer/bpe.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpt4all-backend/tokenizer/bpe.h b/gpt4all-backend/tokenizer/bpe.h index e53c1323..3e43dd22 100644 --- a/gpt4all-backend/tokenizer/bpe.h +++ b/gpt4all-backend/tokenizer/bpe.h @@ -88,7 +88,7 @@ struct buf_ref { uint32_t offset : 20; 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); } };