Browse Source

add const to equality operators

opengl-renderer-broken
Martin Dørum 4 years ago
parent
commit
f9277a2334
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      libswan/include/swan/util.h

+ 2
- 2
libswan/include/swan/util.h View File

@@ -58,11 +58,11 @@ public:
public:
It(std::optional<Ret> next, Func &func): next_(std::move(next)), func_(func) {}

bool operator==(const It &other) {
bool operator==(const It &other) const {
return next_ == std::nullopt && other.next_ == std::nullopt;
}

bool operator!=(const It &other) {
bool operator!=(const It &other) const {
return !(*this == other);
}


Loading…
Cancel
Save