Skip to content

Commit

Permalink
fix VecList iterator indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
szhorvat committed Jul 28, 2024
1 parent 9732103 commit 90573ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/typed_list_pmt.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ class LIST_TYPE_TEMPL::base_iterator {
p(it.p) { }

reference operator * () const { return value_type(Alias(*p)); }
reference operator [] (difference_type i) const { return value_type(Alias(*p)); }
reference operator [] (difference_type i) const { return value_type(Alias(p[i])); }

base_iterator & operator ++ () { ++p; return *this; }
base_iterator operator ++ (int) { ++p; return *this; }
Expand Down

0 comments on commit 90573ad

Please sign in to comment.