From 06434f004277e0a530d37adf3cf6ff6a5b292607 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 840e011b75fb77f761f288a75b4b2a86358dcb9e. --- 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); } };