Skip to content
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

Merged
merged 1 commit into from
Apr 21, 2020

Conversation

marehr
Copy link
Member

@marehr marehr commented Mar 22, 2020

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.

@marehr marehr changed the title [MISC] simplify std::ranges::enable_view overloads [FIX] simplify std::ranges::enable_view overloads Mar 22, 2020
@codecov
Copy link

codecov bot commented Mar 24, 2020

Codecov Report

Merging #1680 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1680   +/-   ##
=======================================
  Coverage   97.68%   97.68%           
=======================================
  Files         238      238           
  Lines        9076     9076           
=======================================
  Hits         8866     8866           
  Misses        210      210           
Impacted Files Coverage Δ
include/seqan3/range/decorator/gap_decorator.hpp 100.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 70b4e57...460f097. Read the comment docs.

@h-2
Copy link
Member

h-2 commented Mar 25, 2020

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:
ericniebler/range-v3#1455

@marehr
Copy link
Member Author

marehr commented Mar 25, 2020

@h-2 Okay, does that change have any impact on our other views? Or do they all inherit from std::ranges::view_interface?

@h-2
Copy link
Member

h-2 commented Mar 25, 2020

All our views inherit std::ranges::view_interface or std::ranges::view_base if I am not mistaken.

@rrahn
Copy link
Contributor

rrahn commented Mar 25, 2020

I managed to get the weird heuristics out of the standard so none of this code is required anymore.

Ah that is good!

marehr added a commit to marehr/seqan3 that referenced this pull request Mar 31, 2020
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`.
marehr added a commit to marehr/seqan3 that referenced this pull request Apr 5, 2020
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`.
marehr added a commit to marehr/seqan3 that referenced this pull request Apr 9, 2020
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.
@marehr marehr requested review from a team and MitraDarja and removed request for a team April 16, 2020 12:34
Copy link
Contributor

@MitraDarja MitraDarja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@marehr marehr requested review from a team and rrahn and removed request for a team April 16, 2020 22:23
@rrahn rrahn merged commit 12ddc07 into seqan:master Apr 21, 2020
MitraDarja pushed a commit to MitraDarja/seqan3 that referenced this pull request May 5, 2020
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`.
@marehr marehr deleted the arg-patch-17 branch May 7, 2020 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants