Pārlūkot izejas kodu

add const to equality operators

opengl-renderer-broken
Martin Dørum pirms 4 gadiem
vecāks
revīzija
f9277a2334
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2
    2
      libswan/include/swan/util.h

+ 2
- 2
libswan/include/swan/util.h Parādīt failu

@@ -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);
}


Notiek ielāde…
Atcelt
Saglabāt