Skip to content

Commit

Permalink
Merge pull request #3194 from eseiler/infra/update_contrib
Browse files Browse the repository at this point in the history
[INFRA] Update contrib
  • Loading branch information
eseiler authored Sep 28, 2023
2 parents 54c60ed + acb3def commit ac1127a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions include/seqan3/contrib/std/chunk_view.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class chunk_view<V>::outer_iterator
return *x.parent_->current_ == std::ranges::end(x.parent_->base_) && x.parent_->remainder_ != 0;
}

friend constexpr difference_type operator-(std::default_sentinel_t y, outer_iterator const & x)
friend constexpr difference_type operator-(std::default_sentinel_t, outer_iterator const & x)
requires std::sized_sentinel_for<std::ranges::sentinel_t<V>, std::ranges::iterator_t<V>>
{
auto const dist = std::ranges::end(x.parent_->base_) - *x.parent_->current_;
Expand Down Expand Up @@ -269,7 +269,7 @@ class chunk_view<V>::inner_iterator
return x.parent_->remainder_ == 0;
}

friend constexpr difference_type operator-(std::default_sentinel_t y, inner_iterator const & x)
friend constexpr difference_type operator-(std::default_sentinel_t, inner_iterator const & x)
requires std::sized_sentinel_for<std::ranges::sentinel_t<V>, std::ranges::iterator_t<V>>
{
std::ranges::min(x.parent_->remainder_, std::ranges::end(x.parent_->base_) - *x.parent_->current_);
Expand Down Expand Up @@ -571,7 +571,7 @@ class chunk_view<V>::iterator
return (x.current_ - y.current_ + x.missing_ - y.missing_) / x.n_;
}

friend constexpr difference_type operator-(std::default_sentinel_t y, iterator const & x)
friend constexpr difference_type operator-(std::default_sentinel_t, iterator const & x)
requires std::sized_sentinel_for<std::ranges::sentinel_t<Base>, std::ranges::iterator_t<Base>>
{
return seqan::stl::detail::chunk::div_ceil(x.end_ - x.current_, x.n_);
Expand Down
4 changes: 2 additions & 2 deletions include/seqan3/contrib/std/join_with_view.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ class join_with_view :
Pattern pattern_{};

template <bool Const>
struct iterator;
class iterator;

template <bool Const>
struct sentinel;
class sentinel;

public:
join_with_view()
Expand Down
5 changes: 3 additions & 2 deletions include/seqan3/contrib/std/zip_view.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@

#include <ranges>

#ifdef __cpp_lib_ranges_zip
// https://godbolt.org/z/YW7e785sd
#if defined __cpp_lib_ranges_zip && !defined(__clang__)

namespace seqan::stl::views
{
Expand Down Expand Up @@ -541,7 +542,7 @@ struct zip_fn
{
template <seqan::stl::ranges::viewable_range... urng_ts>
requires (sizeof...(urng_ts) == 0)
constexpr auto operator()(urng_ts &&... ranges) const
constexpr auto operator()(urng_ts &&...) const
{
return std::views::empty<seqan::stl::tuple<>>;
}
Expand Down

1 comment on commit ac1127a

@vercel
Copy link

@vercel vercel bot commented on ac1127a Sep 28, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

seqan3 – ./

seqan3.vercel.app
seqan3-seqan.vercel.app
seqan3-git-master-seqan.vercel.app

Please sign in to comment.