-
Notifications
You must be signed in to change notification settings - Fork 82
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] simplify std::ranges::enable_view overloads #1680
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1680 +/- ##
=======================================
Coverage 97.68% 97.68%
=======================================
Files 238 238
Lines 9076 9076
=======================================
Hits 8866 8866
Misses 210 210
Continue to review full report at Codecov.
|
I managed to get the weird heuristics out of the standard so none of this code is required anymore. Changes to range-v3 were committed a couple of days ago so you could remove the code after upgrading: |
@h-2 Okay, does that change have any impact on our other views? Or do they all inherit from |
All our views inherit |
Ah that is good! |
In ericniebler/range-v3#1455 the range-v3 library harmonises range-v3 with C++20's `std::ranges`. One of these changes is the behaviour of `std::ranges::enable_view`. This change is needed for seqan#1680 that will simplify code regarding the `seqan3::gap_decorator`.
In ericniebler/range-v3#1455 the range-v3 library harmonises range-v3 with C++20's `std::ranges`. One of these changes is the behaviour of `std::ranges::enable_view`. This change is needed for seqan#1680 that will simplify code regarding the `seqan3::gap_decorator`.
In ericniebler/range-v3#1455 the range-v3 library harmonises range-v3 with C++20's `std::ranges`. One of these changes is the behaviour of `std::ranges::enable_view`. This change is needed for seqan#1680 that will simplify code regarding the `seqan3::gap_decorator`.
A change in ericniebler/range-v3#1455 simplified the heuristics for std::ranges::enable_view. So the gap_decorator is by default now no view anymore. This PR is also in line with #1678 to remove dependencies of our library in the std headers.
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.
LGTM
In ericniebler/range-v3#1455 the range-v3 library harmonises range-v3 with C++20's `std::ranges`. One of these changes is the behaviour of `std::ranges::enable_view`. This change is needed for seqan#1680 that will simplify code regarding the `seqan3::gap_decorator`.
A change in ericniebler/range-v3#1455 simplified
the heuristics for std::ranges::enable_view. So the gap_decorator is by
default now no view anymore.
This PR is also in line with #1678 to remove dependencies of our library
in the std headers.
old description
I know that this introduces a macro (SEQAN3_STD_RANGES_NAMESPACE), but
this reduces code bloat for a feature that is only used for a single
data structure right now.
This PR is also in line with #1678 to remove dependencies of our library
in the std headers.