-
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
<ranges>
: Fix dispatching for views::counted
#5223
base: main
Are you sure you want to change the base?
<ranges>
: Fix dispatching for views::counted
#5223
Conversation
using value_type = std::iter_value_t<It>; | ||
using difference_type = Diff; | ||
using value_type = std::iter_value_t<It>; | ||
using difference_type = Diff; | ||
|
||
redifference_iterator() = default; | ||
constexpr explicit redifference_iterator(It it) : i_{std::move(it)} {} |
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.
There are x64 test failures, separate from the x86 AV problem that's currently blocking all PR checks:
"C:\a\_work\1\s\tests\std\include\range_algorithm_support.hpp", line 989:
error: "i_" is not a nonstatic data member or base class of class
"test::redifference_iterator<std::_Signed128,
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.
P0896R4_views_counted
is still failing. As a reminder, it's always a good idea to rerun a failing test locally before pushing changes.
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.
Oh, this is perphaps DevCom-10735214. The workaround seems to be making the function templates non-abbreviated. I'll verify whether such workaround suffices later.
Fixes #5183 (which is a bit beyond good first issue, IMO).
Drive-by changes:
test::redifference_iterator
, which should always haveiterator_concept
.P0896R4_views_counted/test.cpp
.There's a bug of MSVC which forbids
using ranges::contiguous_range; contiguous_range auto cat = meow();
to work. I've reported DevCom-10823410 for it.