Skip to content

Commit

Permalink
Getting things to compile on intel-classic/2022
Browse files Browse the repository at this point in the history
  • Loading branch information
whaeck committed Feb 12, 2024
1 parent 97eff4f commit 7fc723c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions src/tools/nanorange/iterator/counted_iterator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ class counted_iterator {
template <typename I2>
friend class counted_iterator;

I current_{};
iter_difference_t<I> cnt_{0};

public:
using iterator = I;
using difference_type = iter_difference_t<I>;
Expand Down Expand Up @@ -262,10 +265,6 @@ class counted_iterator {
{
ranges::iter_swap(x.current_, y.current_);
}

private:
I current_{};
iter_difference_t<I> cnt_{0};
};

}
Expand Down
2 changes: 1 addition & 1 deletion src/tools/nanorange/iterator/reverse_iterator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class reverse_iterator {
iter_swap(const reverse_iterator& x,
const reverse_iterator<I2>&
y) noexcept(noexcept(ranges::iter_swap(std::declval<I>(),
std::declval<I>())) &&
std::declval<I2>())) &&
noexcept(--std::declval<I&>()))
-> std::enable_if_t<indirectly_swappable<I2, I>>

Expand Down

0 comments on commit 7fc723c

Please sign in to comment.