소스 검색

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…
취소
저장