SparsePtr: Fixed some operators not being const

Former-commit-id: 1393ab9299502328829efb0daa0b17c1a74fdd2e
This commit is contained in:
Lynix
2014-07-12 12:48:25 +02:00
parent 8128079927
commit cf95b128c5
2 changed files with 18 additions and 11 deletions

View File

@@ -25,12 +25,12 @@ class NzSparsePtr
void Set(void* ptr);
void SetStride(unsigned int stride);
T& operator*();
T& operator->();
T& operator[](unsigned int index);
T& operator*() const;
T& operator->() const;
T& operator[](unsigned int index) const;
NzSparsePtr operator+(unsigned int count);
NzSparsePtr operator-(unsigned int count);
NzSparsePtr operator+(unsigned int count) const;
NzSparsePtr operator-(unsigned int count) const;
NzSparsePtr& operator+=(unsigned int count);
NzSparsePtr& operator-=(unsigned int count);