fixed [] at MemBlock
This commit is contained in:
parent
22267b5f6f
commit
d92f08d3c3
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user