From e01710cbd1c8a35cf9a71378e140c18697e7d4fc Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 4 Feb 2021 14:30:27 +0100 Subject: [PATCH] util/DereferenceIterator: simplify operator->() This makes it compatible with containers storing std::unique_ptr. --- src/util/DereferenceIterator.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/DereferenceIterator.hxx b/src/util/DereferenceIterator.hxx index 4d093f34f..5e79a0e30 100644 --- a/src/util/DereferenceIterator.hxx +++ b/src/util/DereferenceIterator.hxx @@ -61,7 +61,7 @@ public: } pointer operator->() const noexcept { - return static_cast(*original.IT::operator->()); + return static_cast(&**original); } auto &operator++() noexcept {