fixed [] at MemBlock

This commit is contained in:
HuYingzhuo(hugo/hyzboy) 2022-06-14 17:57:27 +08:00
parent 22267b5f6f
commit d92f08d3c3

View File

@ -165,7 +165,12 @@ namespace hgl
T &operator[](int n) T &operator[](int n)
{ {
return buf+n; return buf[n];
}
const T &operator[](int n)const
{
return buf[n];
} }
};//template<typename T> class MemBlock };//template<typename T> class MemBlock