Fix wrong const usage

This commit is contained in:
Ingo Weyrich
2020-07-26 13:28:21 +02:00
parent 0fcca62905
commit b55312140b
6 changed files with 10 additions and 10 deletions

View File

@@ -212,7 +212,7 @@ public:
}
// use with indices
T * operator[](int index) const
T * operator[](int index)
{
assert((index >= 0) && (index < y));
return ptr[index];
@@ -225,7 +225,7 @@ public:
}
// use as pointer to T**
operator const T* const *()
operator const T* const *() const
{
return ptr;
}