Skip to content

Commit

Permalink
Making older GCC happy
Browse files Browse the repository at this point in the history
  • Loading branch information
gershnik committed Jan 9, 2025
1 parent f3514b3 commit 42b9474
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/inc/sys_string/utf_view.h
Original file line number Diff line number Diff line change
Expand Up @@ -719,13 +719,15 @@ namespace sysstr
reverse_iterator reverse(iterator it) const
{ return reverse_iterator(it, std::ranges::rend(this->m_src)); }

const_reverse_iterator reverse(const_iterator it) const requires ranges::reverse_traversable_range<const range>
const_reverse_iterator reverse(const_iterator it) const
requires(ranges::reverse_traversable_range<const range> && !std::is_same_v<const_iterator, iterator>)
{ return const_reverse_iterator(it, std::ranges::rend(this->m_src)); }

iterator reverse(reverse_iterator it) const
{ return iterator(it, std::ranges::end(this->m_src)); }

const_iterator reverse(const_reverse_iterator it) const requires ranges::reverse_traversable_range<const range>
const_iterator reverse(const_reverse_iterator it) const
requires(ranges::reverse_traversable_range<const range> && !std::is_same_v<const_reverse_iterator, reverse_iterator>)
{ return const_iterator(it, std::ranges::end(this->m_src)); }

template<class Func>
Expand Down

0 comments on commit 42b9474

Please sign in to comment.