-
Notifications
You must be signed in to change notification settings - Fork 58
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 operator->
for local_iterator
s
#220
Conversation
Invoking this operator causes a compile break. This appears to have been caused by b1a9cde.
What kind of compile break does it cause? |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## develop #220 +/- ##
========================================
Coverage 98.07% 98.07%
========================================
Files 143 143
Lines 19695 19705 +10
========================================
+ Hits 19316 19326 +10
Misses 379 379
Continue to review full report in Codecov by Sentry.
|
The PR contains a new regression test that will demonstrate the problem. |
Hi @vslashg, we've confirmed the bug you've spotted. The fix will arrive in Boost 1.84 (but after Boost 1.84, beta, which is due today). Thank you! |
Thank you for updating the tests! The fix seems more complicated than it needs to be. Why not just use: pointer operator->() const noexcept
{
return std::addressof(dereference());
} ? Also, we need to add coverage for Personally, what I'd like to do here is update the I can get this done but I wanted to offer the chance to iterate on the PR. |
I'm certainly willing to make the changes you suggest, but for such a small change it may make more sense for you to implement the fix. Let me know what you prefer; I'm happy to see this fixed either way. |
Sure. This is an opportunity to become a contributor though! I wouldn't pass it up. For the tests, I think we'd cover our bases if we just proved that Feel free to ask me any questions about how to run b2 or anything else like that. |
The friction of coming up with a test object such that I should be able to get to this either today or tomorrow. Thanks! |
Originally caughy by vslashg from PR boostorg#220
* Add tests for member of pointer operator for bucket iterators * Fix erroneous conversion from node* to value_type* in bucket iterators Originally caughy by vslashg from PR #220 * Update change log * Update GHA config to use containers in C++20 builds for clang-14 as it's incompatible with libstdc++-13 * fixed Python installation problem * tried variation of former fix * tried another variation of former fix * tried yet another variation * editorial --------- Co-authored-by: Christian Mazakas <christian.mazakas@gmail.com>
Problem fixed in #221. |
Invoking this operator causes a compile break. This appears to have been caused by b1a9cde.