瀏覽代碼

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…
取消
儲存