From b3bc68acbb87d90c6df7a69592a8d099ca3d727b Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sun, 6 Oct 2024 20:01:45 +0100 Subject: [PATCH] fixup 94a5f5027c2ca01913fb03ad5aa5a4153132550e --- src/core/alloc_func.hpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/core/alloc_func.hpp b/src/core/alloc_func.hpp index 537b15b7bd0..db4a568dfaf 100644 --- a/src/core/alloc_func.hpp +++ b/src/core/alloc_func.hpp @@ -181,9 +181,6 @@ struct TempBufferT { operator T* () noexcept { return this->get(); } operator const T* () const noexcept { return this->get(); } - - T& operator[](size_t index) noexcept { return this->ptr[index]; } - const T& operator[](size_t index) const noexcept { return this->ptr[index]; } }; template @@ -198,7 +195,7 @@ using TempBufferSTParent = TempBufferT(MAX_SIZE / sizeof(T), */ template struct TempBufferST : public TempBufferSTParent { - using TempBufferSTParent::TempBufferT; + using TempBufferSTParent::TempBufferSTParent; }; #endif /* ALLOC_FUNC_HPP */