-
Notifications
You must be signed in to change notification settings - Fork 349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add assignment operator to int_vector_buffer iterator #364
base: master
Are you sure you want to change the base?
Conversation
Can one of the admins verify this patch? |
Somehow this iterator implementation is broken and we don't know why. We spent 2 hours now debugging it to no avail. The |
@@ -549,15 +556,15 @@ class int_vector_buffer | |||
return it += i; | |||
} | |||
|
|||
iterator& operator-(difference_type i) const |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't it enough to just remove the reference here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's enough to fix the bug, yes. This pull request is primarily about about adding an assignment operator though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any progress on this?
@@ -549,15 +556,15 @@ class int_vector_buffer | |||
return it += i; | |||
} | |||
|
|||
iterator& operator-(difference_type i) const |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's enough to fix the bug, yes. This pull request is primarily about about adding an assignment operator though.
Otherwise it cannot be used in sd_vector constructor, probably amongst others.