From 68a424d9e119359062c7851864d1e07e3927c844 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 10 Jul 2024 20:11:18 +0200 Subject: [PATCH] util/DereferenceIterator: add missing `const` --- src/util/DereferenceIterator.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }