util/DereferenceIterator: simplify operator->()

This makes it compatible with containers storing std::unique_ptr.
This commit is contained in:
Max Kellermann 2021-02-04 14:30:27 +01:00 committed by Max Kellermann
parent c87a4a7d08
commit e01710cbd1

View File

@ -61,7 +61,7 @@ public:
}
pointer operator->() const noexcept {
return static_cast<pointer>(*original.IT::operator->());
return static_cast<pointer>(&**original);
}
auto &operator++() noexcept {