diff --git a/src/util/DereferenceIterator.hxx b/src/util/DereferenceIterator.hxx index 6bdc82a32..9b62c08b0 100644 --- a/src/util/DereferenceIterator.hxx +++ b/src/util/DereferenceIterator.hxx @@ -53,7 +53,7 @@ public: return *this; } - auto &operator+(difference_type n) noexcept { + auto &operator+(difference_type n) const noexcept { return original + n; } @@ -73,7 +73,7 @@ public: return *this; } - auto &operator-(difference_type n) noexcept { + auto &operator-(difference_type n) const noexcept { return original - n; }