Commit e01710cb authored by Max Kellermann's avatar Max Kellermann Committed by Max Kellermann

util/DereferenceIterator: simplify operator->()

This makes it compatible with containers storing std::unique_ptr.
parent c87a4a7d
......@@ -61,7 +61,7 @@ public:
}
pointer operator->() const noexcept {
return static_cast<pointer>(*original.IT::operator->());
return static_cast<pointer>(&**original);
}
auto &operator++() noexcept {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment