Skip to content

Commit

Permalink
Fix EnumeratorHandle compilation
Browse files Browse the repository at this point in the history
Signed-off-by: Bili Dong <[email protected]>
  • Loading branch information
qobilidop committed Jan 23, 2025
1 parent 591f24e commit 010c503
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/enumerator.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class EnumeratorHandle {

reference operator*() const;
const EnumeratorHandle<T> &operator++();
bool operator==(const EnumeratorHandle<T> &other) const;
bool operator!=(const EnumeratorHandle<T> &other) const;
};

Expand Down Expand Up @@ -630,6 +631,11 @@ const EnumeratorHandle<T> &EnumeratorHandle<T>::operator++() {
return *this;
}

template <typename T>
bool EnumeratorHandle<T>::operator==(const EnumeratorHandle<T> &other) const {
return !(*this != other);
}

template <typename T>
bool EnumeratorHandle<T>::operator!=(const EnumeratorHandle<T> &other) const {
if (this->enumerator == other.enumerator) return true;
Expand Down

0 comments on commit 010c503

Please sign in to comment.