diff --git a/gen_enum_str.py b/gen_enum_str.py old mode 100644 new mode 100755 diff --git a/src/container/iterator.hpp b/src/container/iterator.hpp old mode 100644 new mode 100755 index 4f0ad3a..aa100b3 --- a/src/container/iterator.hpp +++ b/src/container/iterator.hpp @@ -16,8 +16,8 @@ struct Iterator { ptr = other.ptr; return *this; }; - Iterator& operator++() { ptr += sizeof(T); return *this; }; - Iterator operator++(int) { auto copy = *this; ptr += sizeof(T); return copy; }; + Iterator& operator++() { ptr++; return *this; }; + Iterator operator++(int) { auto copy = *this; ptr++; return copy; }; friend int operator-(Iterator lhs, Iterator rhs) { return lhs.ptr - rhs.ptr; }; diff --git a/src/container/queue.hpp b/src/container/queue.hpp old mode 100644 new mode 100755 diff --git a/src/container/ringbuffer.hpp b/src/container/ringbuffer.hpp old mode 100644 new mode 100755 diff --git a/src/util/gz_regex.cpp b/src/util/gz_regex.cpp old mode 100644 new mode 100755 diff --git a/src/util/gz_regex.hpp b/src/util/gz_regex.hpp old mode 100644 new mode 100755 diff --git a/src/util/util.cpp b/src/util/util.cpp old mode 100644 new mode 100755 diff --git a/src/util/util.hpp b/src/util/util.hpp old mode 100644 new mode 100755