aboutsummaryrefslogtreecommitdiffstats
path: root/libalee/types.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2023-10-12 20:23:50 -0400
committerClyne Sullivan <clyne@bitgloo.com>2023-10-12 20:23:50 -0400
commit15c0c2f789902ac764919913e123466ac46e4746 (patch)
tree937eea767e593798871e6774999b857cdd81509b /libalee/types.cpp
parentd36bb13f52b3899fd0f57e38f00d97e2c3a0f627 (diff)
some class refactoring
Diffstat (limited to 'libalee/types.cpp')
-rw-r--r--libalee/types.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/libalee/types.cpp b/libalee/types.cpp
index baaa5ce..83cf1f7 100644
--- a/libalee/types.cpp
+++ b/libalee/types.cpp
@@ -40,6 +40,13 @@ Word::iterator& Word::iterator::operator++()
return *this;
}
+Word::iterator Word::iterator::operator++(int)
+{
+ const auto copy = *this;
+ addr++;
+ return copy;
+}
+
Word::iterator::value_type Word::iterator::operator*()
{
return dict->readbyte(addr);