-
Notifications
You must be signed in to change notification settings - Fork 71
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
key_of_value on treap_set seems to be broken in 1.69 #35
Comments
key_of_value
on treap_set
seems to be broken in 1.69
Looking further, this seems to have been introduced in 4cf3898 The priority comparison function changed from being defined on To go down this path, it seems like there should he |
I have a possible fix in commit jm-mikkelsen@d3bd80d |
Thanks for the report. I previously thought that priority should always go with key_type, but maybe you are right, the correct approach would to have a priority_of_value option. The default could to use value_type for priority comparisons. |
My pull request is after my priority_of_value thought ... It is much more simple. |
You commit seems to fail in integration tests (https://travis-ci.org/boostorg/intrusive/builds/489375350?utm_source=github_status&utm_medium=notification). |
Yes, it does. I did not consider The underlying problem is that The changes to Does this sound reasonable? |
I updated the pull request to implement This issue with this patch at the moment is that the |
Many thanks for the patch. Based on your patch I've prepared commit: The main change is that some "insert_check/insert_unique_check" overloads need an additional priority parameter apart from the priority comparison, since the priority is a different attribute that can be obtained from a different method. By default priority_of_value is the identity operation, so your test case now compiles fine. Using priority_of_value your example would become:
|
Thanks for making the change. You didn't take the tagging |
The code below fails to compile with Boost 1.69. It works fine with 1.59.
It looks a lot like
key_of_value
is not handled correctly, unless I am missing something obvious.Compiler output on Xcode clang:
The text was updated successfully, but these errors were encountered: