util/DereferenceIterator: simplify operator->()
This makes it compatible with containers storing std::unique_ptr.
This commit is contained in:
parent
c87a4a7d08
commit
e01710cbd1
@ -61,7 +61,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
pointer operator->() const noexcept {
|
pointer operator->() const noexcept {
|
||||||
return static_cast<pointer>(*original.IT::operator->());
|
return static_cast<pointer>(&**original);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto &operator++() noexcept {
|
auto &operator++() noexcept {
|
||||||
|
Loading…
Reference in New Issue
Block a user