Skip to content

Conversation

fosterbrereton
Copy link
Member

No description provided.

@@ -269,7 +270,7 @@ class reverse_fullorder_iterator
explicit reverse_fullorder_iterator(I x) : base_m(--x), edge_m(forest_leading_edge - base_m.edge()) {}
template <typename U>
reverse_fullorder_iterator(const reverse_fullorder_iterator<U>& x)
: base_m(x.base()), edge_m(x.edge_m) {}
: base_m(--x.base()), edge_m(forest_leading_edge - base_m.edge()) {}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since base() returns std::next(base_m), we have to do the same steps in this ctor as the one in line 270.

@fosterbrereton fosterbrereton merged commit ea9d0f8 into master Jul 22, 2020
@fosterbrereton fosterbrereton deleted the forest-bug-fixes branch July 22, 2020 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant