Skip to content

Commit

Permalink
fixup 94a5f50
Browse files Browse the repository at this point in the history
  • Loading branch information
JGRennison committed Oct 6, 2024
1 parent d82ea33 commit b3bc68a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/core/alloc_func.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <typename T, size_t MAX_SIZE>
Expand All @@ -198,7 +195,7 @@ using TempBufferSTParent = TempBufferT<T, std::max<size_t>(MAX_SIZE / sizeof(T),
*/
template <typename T, size_t MAX_SIZE = 256>
struct TempBufferST : public TempBufferSTParent<T, MAX_SIZE> {
using TempBufferSTParent<T, MAX_SIZE>::TempBufferT;
using TempBufferSTParent<T, MAX_SIZE>::TempBufferSTParent;
};

#endif /* ALLOC_FUNC_HPP */

0 comments on commit b3bc68a

Please sign in to comment.