Fix compile errors on GCC

This commit is contained in:
Connor McLaughlin
2019-11-03 00:15:42 +10:00
parent 6dc7069d7c
commit 5abbdef065
6 changed files with 15 additions and 9 deletions

View File

@ -13,7 +13,7 @@ public:
using const_reference = const T&;
using pointer = T*;
using const_pointer = const T*;
using this_type = typename HeapArray<T, SIZE>;
using this_type = HeapArray<T, SIZE>;
HeapArray() { m_data = new T[size]; }
@ -71,7 +71,7 @@ public:
}
#define RELATIONAL_OPERATOR(op) \
bool operator##op(const this_type& rhs) const \
bool operator op (const this_type& rhs) const \
{ \
for (size_type i = 0; i < SIZE; i++) \
{ \
@ -91,4 +91,4 @@ public:
private:
T* m_data;
};
};