Преглед изворни кода

add const to equality operators

opengl-renderer-broken
Martin Dørum пре 4 година
родитељ
комит
f9277a2334
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2
    2
      libswan/include/swan/util.h

+ 2
- 2
libswan/include/swan/util.h Прегледај датотеку

@@ -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…
Откажи
Сачувај