From b8529ff268c3b5b30935d46027a2204c7b990baf Mon Sep 17 00:00:00 2001 From: roker Date: Fri, 18 Jun 2021 09:18:15 +0200 Subject: [PATCH] change return type. --- src/wrapper.hh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wrapper.hh b/src/wrapper.hh index 3c42a51..d2b0703 100644 --- a/src/wrapper.hh +++ b/src/wrapper.hh @@ -126,8 +126,9 @@ public: public: iterator() = default; - iterator operator++() { return (value ? value = value->next : value); } - Element operator*() { return value->*LW::Value; } + iterator operator++() { return (value ? value = value->next : value); } + Element operator*() { return value->*LW::Value; } + Element operator->() { return (value->*LW::Value); } bool operator==(const iterator& other) const { return value == other.value; } bool operator!=(const iterator& other) const { return value != other.value; }