-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
fix incorrect operator lookup for postincrement #4536
Conversation
In principle this might break some existing code (if they've decided to only wrap one of the operators). I recommend:
Point 2 is only if it's an easy change! |
This breaks the current iterator implementation, which only specifies the preincrement operator. I added the postincrement operators in #4528.
I will update the migration guide
I updated the error message to:
|
Thanks - it's fairly minor breakage and should be easy for users to fix, but hopefully giving them a little hint will make it easier to work out what to do |
I just noticed that this does not work for nonmember operators yet. |
It would be good to fix #4539 first. |
It's not clear even to me what "wrap" means here without looking through the code. Did you mean to ask users to add these operators to their external C++ class declarations? Or to correct the existing declarations? |
I think I will update this to be closer to the error message of gcc, which gives the following errors in this case:
|
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.
It would be good to fix #4539 first.
I think we're prepared to ignore this for now right?
This PR seems a much simpler fix, so is probably worth going in even without the full non member bug fix.
Yes I would ignore this issue for now |
Co-authored-by: da-woods <dw-git@d-woods.co.uk>
Co-authored-by: da-woods <dw-git@d-woods.co.uk>
Co-authored-by: da-woods <dw-git@d-woods.co.uk>
Co-authored-by: da-woods <dw-git@d-woods.co.uk>
Co-authored-by: da-woods <dw-git@d-woods.co.uk>
@da-woods I applied the requested changes |
Thanks @maxbachmann |
Fixes #4535